Difference between run and start method of thread - Java Multithreading

Difference between start() and run() method :

In case of run() method, thread.run() doesn't call on newly created thread. But, it executes run() method on currently running thread.
But, in case of thread.start(), it starts new thread, and calls run() method on newly created thread.
Below is the example with output by calling run() and start() methods.




Comments

Popular posts from this blog

Oracle Ceritified Java 8 Programmer Exam Experience