Java Threads Question:
Download Job Interview Questions and Answers 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 Question | Next Question |
What is the difference between Thread and Runnable types? | A Thread is runnable, how does that work? |