I\'m building a small Android application, but this is more of a Java question than an android question. Looking through the tutorials there are lines that look like:
<
In JVM, when a class is loaded, an object of the type Class
represents the loaded class in memory. com.abc.MyClass.class
is a literal expression that represents the Class
object for the class com.abc.MyClass
.
The same Class
object can also be obtained by calling myClassReference.getClass()
method if you have a reference to an object of the class.
The Class
object can be used to find the information on the structure of the class, access fields, invoke methods and instantiate objects of the class using Java Reflection API.