Java Threads Question:

How does the run() method in Runnable work?

Tweet Share WhatsApp

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 PDF Read All 38 Java Threads Questions
Previous QuestionNext Question
What is the difference between Thread and Runnable types?A Thread is runnable, how does that work?