views:

182

answers:

4

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

Please give e.g if possible. ?

+11  A: 

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

Dev er dev
Hey,I know it can't...but I am unable to get the reason behind it ?
RayAllen
@Dev er dev, Technically, you can call the run() method directly because it is part of the public interface. So you're answer isn't technically accurate.
Tim Bender
+4  A: 
Chez
A: 

Because start() doesnt just call run(). It starts a new thread and in that thread calls run().

Visage
A: 

you can't run directly the run() method. Whenever start your thread by using thread.start(), then the run() method has been called and performed the further operation.

Venkats