1.  What notifyAll() method do ?


Wakes up one threads that are waiting on this object's monitor
Wakes up all threads that are not waiting on this object's monitor
Wakes up all threads that are waiting on this object's monitor
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  Which of the following will directly stop the execution of a Thread ?


wait()
notifyall()
exits synchronized code
notify()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  Which keyword when applied on a method indicates that only one thread should execute the method at a time.


volatile
synchronized
native
static


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  When the event for which a thread is blocked occurs,


threads moves to the ready queue
thread remains blocked
thread completes
a new thread is provided


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  Which of the following constructor of class Thread is valid one ?


Thread(Runnable threadOb, int priority)
Thread(int priority)
Thread(Runnable threadOb, String threadName)
Thread(String threadName, int priority)


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report