Java Threads Question:
Download Questions PDF

How does the run() method in Runnable work?

Answer:

It may help to think of the run method like the main method in standard single threaded applications. The run method is a standard entry point to run or execute a class. The run method is normally only executed in the context of an independent Thread, but is a normal method in all other respects.

Download Java Threads Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between Thread and Runnable types?A Thread is runnable, how does that work?