12.7. Accessing Array Elements

All array types of the Java programming language have corresponding C types, as shown in Table 12.2.

Table 12.2. Correspondence between Java Array Types and C Types

Image

Image 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 12.3. The type jarray denotes a generic array.

Image

Figure 12.3. Inheritance hierarchy of array types ...

Get Core Java® Volume II—Advanced Features, Ninth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.