Home » JAVA Programming » Java Basic » Question
  1. How to get the class object of associated class using Reflection?
    1. Class.name(“className”)
    2. className.getClassName()
    3. Class.forName(“className”)
    4. className.getClass()
    5. None of these
Correct Option: C

forName(String className) returns the Class object associated with the class or interface with the given string name.



Your comments will be displayed only after manual approval.