Multiple choice technology programming languages

what are the types of methods for object class

  1. wait(), toString() only

  2. notify(), notifyall() only

  3. run(), stop()

  4. wait(),toString(),notify(), notifyall() and finalize()

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

The Object class in Java has methods like wait(), notify(), notifyAll(), toString(), equals(), hashCode(), and finalize(). Option D correctly lists wait(), toString(), notify(), notifyAll(), and finalize() - though it's not exhaustive (it misses equals() and hashCode()). Among the given options, D is the most complete and correct.