3.4. Accessing the Run-Time Constant Pool
Many numeric constants, as well as objects, fields, and methods, are accessed via the run-time constant pool of the current class. Object access is considered later (§3.8). Data of types
double, as well as references to instances of class
String, are managed using the ldc, ldc_w, and ldc2_w instructions.
The ldc and ldc_w instructions are used to access values in the run-time constant pool (including instances of class
String) of types other than
long. The ldc_w instruction is used in place of ldc only when there is a large number of run-time constant pool items and a larger index is needed to access an item. The ldc2_w instruction is used to access all values of types ...