
88 Java Stand-alone Applications on z/OS Volume II
6.1.1 Basic elements of JNI
In this section we discuss the most important elements in the JNI specification.
JNI primitive type and reference types
There are two data types used in Java to pass arguments and obtain returned
values, which enable you to interact between the Java language and Native
language. The JNI defines
primitive types and reference types to represent Java
language elements.
The primitive types are very straightforward and can be mapped from C/C++ to
Java just by adding a j character to the primitive type, as illustrated in Figure 6-2.
Figure 6-2 Methods mapping
Note: Details of ...