6.  Which of these method of Thread class is used to find out the priority given to a thread ?


get()
ThreadPriority()
getPriority()
getThreadPriority()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

7.  The time required to create a new thread in an existing process is


greater than the time required to create a new process
less than the time required to create a new process
equal to the time required to create a new process
none of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

8.  Which of the following will not directly cause a thread to stop ?


Input Stream Access
wait()
sleep()
notify()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

9.  Thread priority in Java is ?


Integer
Float
double
long


Answer

 Option

Java assigns to each thread a priority that determines hoe that thread should be treated with respect to others. Thread priority are integers that specify relative priority of one thread to another.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

10.  Which function of pre defined class Thread is used to check weather current thread being checked is still running ?


isAlive()
Join()
isRunning()
Alive()


Answer

 Option

isAlive() function is defined in class Thread, it is used for implementing multithreading and to check whether the thread called upon is still running or not.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report