Java Threads Question:

Download Job Interview Questions and Answers PDF

What invokes a threads run() method?

Java Threads Interview Question
Java Threads Interview Question

Answer:

After a thread is started, via its start() method of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed.

Download Java Threads Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between preemptive scheduling and time slicing?What is the purpose of the wait(), notify(), and notifyAll() methods?