Dhruv Arya wrote:
What happens in the above code ?? I m not able to understand the fact of overriding the start() method of the thread class and still get an output of MyThread: start() followed by MyRunnable:run() Please can some one explain thank you
When you call, myThread.start(), you will get the "MyThread:start()" message.
When you call, thread.start(), the new thread will call the run() method of your runnable, and you will get the "MyRunnable:run()" message.
Henry