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