PrepAway - Latest Free Exam Questions & Answers

Which is the correct code that goes into (1) of the C/C++ source file JNIProb.c created in this way?

The following JNIProb.java has been compiled, and the javah command has been run to create
the header file JNIProb.h. Which is the correct code that goes into (1) of the C/C++ source file
JNIProb.c created in this way?

PrepAway - Latest Free Exam Questions & Answers

A.
int JNICALL Java_JNIProb_add(JNIEnv*env, jobject o, inta, intb)

B.
jint JNICALL Java_JNIProb_add(JNIEnv*env, jobject o, jint a, jint b)

C.
jint JNICALL add(JNIEnv *env. jobject o. int a. int b)

D.
jint JNICALL addfJNIEnv *env, jobject o. jint a. jint b)

Explanation:

One Comment on “Which is the correct code that goes into (1) of the C/C++ source file JNIProb.c created in this way?


Leave a Reply

Your email address will not be published. Required fields are marked *