-
How to get the class object of associated class using Reflection?
-
- Class.name(“className”)
- className.getClassName()
- Class.forName(“className”)
- className.getClass()
- None of these
Correct Option: C
forName(String className) returns the Class object associated with the class or interface with the given string name.