1. |
Which three are methods of the Object class?
|
|||||||
|
2. |
Which of the following line of code is suitable to start a thread ? |
|||||||
|
3. |
Which method must be defined by a class implementing the java.lang.Runnable interface? |
|||||||
|
4. |
Which class or interface defines the wait(), notify(),and notifyAll() methods? |
|||||||
|
5. |
Assume the following method is properly synchronized and called from a thread A on an object B: wait(2000); After calling this method, when will the thread A become a candidate to get another turn at the CPU? |
|||||||
|