November 2004
Intermediate to advanced
1024 pages
27h 50m
English
All array types of the Java programming language have corresponding C types, as shown in Table 11-2.
| Java Type | C Type |
|---|---|
| boolean[] | jbooleanArray |
| byte[] | jbyteArray |
| char[] | jcharArray |
| int[] | jintArray |
| short[] | jshortArray |
| long[] | jlongArray |
| float[] | jfloatArray |
| double[] | jdoubleArray |
| Object[] | jobjectArray |
The type jarray denotes a generic array.
C++ NOTE
In C, all these array types are actually type synonyms of jobject. In C++, however, they are arranged in the inheritance hierarchy shown in Figure 11-2. Figure 11-2. Inheritance hierarchy of array types |
The GetArrayLength function returns ...
Read now
Unlock full access