Skip to content
Advertisement

What is the difference between Thread.start() and Thread.run()?

Why do we call the start() method, which in turn calls the run() method?
Can’t we directly make a call to run()?

Please give an example where there is a difference.

Advertisement

Answer

No, you can’t. Calling run will execute run() method in the same thread, without starting new thread.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement