
Reflecting on a Classy String
Java’s reflection API allows the instantiation of an object using only its String description. A Java application can determine the class of an object from the associated string and then construct an instance of the class. For example: public Object getObject (){ try { Class MyClass = Class.forName(“Hello”); Constructor con