Which method is called when thread is executed?

Which method is called when thread is executed?
Answer
The
run() method
of thread class is called if the thread was constructed using a separate Runnable object otherwise this method does nothing and returns. When the run() method calls, the code specified in the run() method is executed.
 

Tìm kiếm

Back
Top