Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
A. getClass()
B. intern()
C. getName()
D. toString()
Answer:C
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
A. getClass() B. intern() C. getName() D. toString()
Explanation: The getName() method of the Class class returns the name (as String) of the entity (class, interface) represented by this Class object. It is a non-static method, and available in the java.lang package.