1.

Which of these methods return a class object given its name?(a) getClass()(b) findClass()(c) getSystemClass()(d) findSystemClass()I have been asked this question in an online interview.I would like to ask this question from Java.lang topic in division Exploring java.lang & java.io of Java

Answer» CORRECT choice is (d) findSystemClass()

Easiest explanation: findSystemClass() returnsa CLASS object GIVEN its NAME.


Discussion

No Comment Found

Related InterviewSolutions