Multiple choice technology programming languages

Which are methods of the Object class? (Choose all that apply.)

  1. notify();

  2. wait(long msecs);

  3. interrupt();

  4. synchronized();

Reveal answer Fill a bubble to check yourself
A,B Correct answer
Explanation

notify() and wait(long) are methods defined in the java.lang.Object class, which serves as the root class for all Java objects. interrupt() is a method of the java.lang.Thread class, and synchronized is a Java keyword used for locking blocks or methods rather than a method itself.