Sunday, 15 January 2017

Life Cycle of a Thread Difference in start() and run() ?

When program calls start() method a new Thread is created and code inside run() method is executed in new Thread while if you call run() method directly no new Thread is created and code inside run() will execute on current Thread.

No comments:

Post a Comment