Java Multi-Threading Question:
Download Questions PDF

What are the methods of the thread class used to schedule the threads?

Java Multi-Threading Interview Question
Java Multi-Threading Interview Question

Answer:

The methods of the thread class used to schedule the threads are as follows:

-public final void join() throws InterruptedException
-public final void notify()
-public final void notifyAll()
-public static void yield()
-public final void setPriority(int priority)
-public static void sleep(long millis) throws InterruptedException
-public final void wait() throws InterruptedException

Download Java Multi-Threading Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the method of Runnable interface with example?What is thread Local variable?