What is Jstring? Answer
JNIEXPORT jstring JNICALL Java_TestJNIString_sayHello(JNIEnv *, jobject, jstring); JNI defined a jstring type to represent the Java String . The last argument (of JNI type jstring ) is the Java String passed into the C program.