What is the name of the method used to schedule a thread for execution and that for executing a thread? init(); start(); run(); resume(); sleep(); feel it is start() and run() simultaneously.
'Shweta', PROPER NAMES ARE NOW REQUIRED!! Read this post for more details. Javaranch appreciates your cooperation to comply with the official naming policy. Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
you can not execute a thread. Calling start will put it in runnable state but calling 'run' will just use that method in the current thread. You can think of the 'thready' code existing in 'start' only.