Multiple choice

Which of the following is not a method of Object class?

  1. finalize()

  2. wait()

  3. sleep(long millis)

  4. notify()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This answer is correct because this method is not a part of Object class.This method is present in Thread class as a static method.