1.  Which of the following are methods of the Thread class ?
1. yield()
2. sleep (long msec)
3.go()
4. stop()


1, 2 and 4
1 and 3
3 only
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  What is the priority of the thread in output of this program ?
class multithreaded_programming
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t);
}
}


5
4
2
3


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  Which are cannot directly cause a thread to stop executing ?


Calling the SetPriority() method on a Thread object
Calling notify() method on an object
Calling read() method on an InputStream object
Calling the wait() method on an object


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  Which two of the following methods are defined in class Thread ?
a. start()
b. wait()
c. notify()
d. run()
e. terminate()


d & e
a & e
a & d
b & c


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  Which three guarantee that a thread will leave the running state ?
a. yield()
b. wait()
c. notify()
d. notify()
e. sleep(1000)
f. aLiveThread.join()
g. Thread.killThread()


e, f & g
b, e & f
b, e & g
a, c & d


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report