June 1999
Intermediate to advanced
320 pages
5h 20m
English
This chapter specifies the standard data types defined by the JNI. C and C++ code should include the header file jni.h before referring to these types.
The JNI defines a set of C/C++ types that correspond to the primitive and reference types in the Java programming language.
The following table describes the primitive types in the Java programming language and the corresponding types in the JNI. Like their counterparts in the Java programming language, all primitive types in the JNI have well-defined sizes.
|
Java Language Type |
Native Type |
Description |
|---|---|---|
|
|
|
unsigned 8 bits |
|
|
|
signed 8 bits |
|
|
|
unsigned 16 bits |
|
|
|
signed 16 bits |
|
|
|
Read now
Unlock full access