Multiple choice technology programming languages

The following are used for Thread communication

  1. wait,notify,notifyall

  2. wait,notify,notifyall,sleep

  3. Yield,sleep

  4. yield, sleep, wait

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

Thread communication in Java is handled by wait(), notify(), and notifyAll() methods from the Object class. The sleep() method only pauses execution and is not used for inter-thread communication. Therefore option A is correct and option B (including sleep) is incorrect. The claimed answer A is correct.