Home » JAVA Programming » Object & Classes » Question
  1. Which of these methods returns the class of an object?
    1. WhoseClass()
    2. getClass()
    3. WhoseObject()
    4. Class()
    5. None of these
Correct Option: B

getClass()



Your comments will be displayed only after manual approval.