Sun Java Solaris Communities My SDN Account
 
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.

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.