Sun Java Solaris Communities My SDN Account Join SDN
 
Index of Code Samples

Reflection API Code Samples

 

The Reflection API represents or reflects the classes, interfaces, and objects in the Java virtual machine. (JVM1).

Arrays
  • array2.java creates a 10-long array of Strings and sets location 5 in the array to a string value. The value is retrieved and displayed. For supporting information see Using Java Reflection.

Examining Classes Manipulating Objects
1 As used on this web site, the terms Java virtual machine or JVM mean a virtual machine for the Java platform.