I am storing a list of classes through (Classname.class) and would like to instantiate one? Is this possible?
Classname.class
newInstance seems to the met
newInstance
Just to add one point I see missing:
You can invoke newInstance directly on the Class object if it has a public null constructor. (Null constructor is the constructor with no arguments.)
Class
Otherwise, you can find constructors via Class.getConstructors() as others have said.
Class.getConstructors()