Question
a.
sleep()
b.
isAlive()
c.
join()
d.
stop()
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of these method waits for the thread to terminate?
Similar Questions
Discover Related MCQs
Q. Which of these method is used to explicitly set the priority of a thread?
View solution
Q. Which of these method is used to implement Runnable interface?
View solution
Q. Which of these method is used to begin the execution of a thread?
View solution
Q. Which of these method of Thread class is used to find out the priority given to a thread?
View solution
Q. Which function of pre defined class Thread is used to check weather current thread being checked is still running?
View solution
Q. Which of these are types of multitasking?
View solution
Q. Thread priority in Java is?
View solution
Q. What will happen if two thread of the same priority are called to be processed simultaneously?
View solution
Q. What requires less resources?
View solution
Q. What does not prevent JVM from terminating?
View solution
Q. What decides thread priority?
View solution
Q. What is true about time slicing?
View solution
Q. Deadlock is a situation when thread is waiting for other thread to release acquired object.
View solution
Q. What should not be done to avoid deadlock?
View solution
Q. What is true about threading?
View solution
Q. Which of the following is a correct constructor for thread?
View solution
Q. Which of the following stops execution of a thread?
View solution
Q. Which of the following will ensure the thread will be in running state?
View solution
Q. Which of this method is used to avoid polling in Java?
View solution
Q. Which of these method is used to tell the calling thread to give up a monitor and go to sleep until some other thread enters the same monitor?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!