In JNI there are jtypes. Like jint for int and jboolean for boolean. I understand the latter types are c/c++ types . But type is a jtype ? In books they mention this type also a native type. What is meant by that ?
EDIT:
What is the use of jtype ?
From
jni.h,By native types they don’t mean native to Java language, they mean native C or native machine equivalents. The
jversions, aid to map Java types to native C types. The advantage of this mapping is, a Java programmer familiar with basic Java types can continue using the same names with the just the addedj. He need not bother how are they mapped into the machine’s basic type. It will be taken care by the typedefs. Also if the underlying machine architecture changes, still you need not bother, just chaging the typedefs will doAddressing your concerns in comments,
_jstringis a class. Andjstringis a pointer to this classJust like we have the
Stringclass in C++