Improved techniques for representation of objects in a Java programming
environment are disclosed. The techniques are highly suitable for representation
of Java objects inside virtual machines, especially those that operate
with limited resources (e.g., embedded systems). A cluster of Java object
representations is disclosed. Each of the Java object representations provide
a reference to a Java object and a reference to the class associated with
the Java object. Accordingly, a two-tier representation is provided which
allows efficient implementation of applications which need to access information
regarding both Java objects and classes. As a result, quick access to information
regarding Java objects can be achieved.