Millionaire Mode

Java Programming and Web Technologies Quiz

Question 1 of 6

A monitor called nik has 3 threads, having same priority, in its waiting pool; How can we notify one of the threads, named 'thread1' to move from Waiting state to Ready

  1. Execute notify(thread1); from within synchronized code of mon.
  2. Execute mon.notify(thread1); from synchronized code of any object.
  3. Execute thread1.notify(); from synchronized code of any object.
  4. Execute thread1.notify(); from any code(synchronized or not) of any object.
  5. You cannot specify which thread will get notified.

Prize Money

15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000