1.

Which of these methods returns the class of an object?(a) getClass()(b) Class()(c) WhoseClass()(d) WhoseObject()I had been asked this question by my college director while I was bunking the class.My enquiry is from Java.lang in portion Exploring java.lang & java.io of Java

Answer» RIGHT option is (a) GETCLASS()

The best explanation: NONE.


Discussion

No Comment Found

Related InterviewSolutions