adplus-dvertising
frame-decoration

Question

Which of this method can be used to make the main thread to be executed last among all the threads?

a.

stop()

b.

sleep()

c.

join()

d.

call()

Posted under Java Programming

Answer: (b).sleep()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of this method can be used to make the main thread to be executed last among all the threads?

Similar Questions

Discover Related MCQs

Q. Which of this method is used to find out that a thread is still running or not?

Q. What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?

Q. Which of these method waits for the thread to terminate?

Q. Which of these method is used to explicitly set the priority of a thread?

Q. Which of these method is used to implement Runnable interface?

Q. Which of these method is used to begin the execution of a thread?

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

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

Q. Which of these are types of multitasking?

Q. Thread priority in Java is?

Q. What will happen if two thread of the same priority are called to be processed simultaneously?

Q. What requires less resources?

Q. What does not prevent JVM from terminating?

Q. What decides thread priority?

Q. What is true about time slicing?

Q. Deadlock is a situation when thread is waiting for other thread to release acquired object.

Q. What should not be done to avoid deadlock?

Q. What is true about threading?

Q. Which of the following is a correct constructor for thread?

Q. Which of the following stops execution of a thread?