Maneesh Godbole wrote:Look for a file called src.zip in your Java home. It contains the source code.
Thanks for your reply. Actually my doubt is , Suppose, when we are executing one method on Thread class, like fine current thread, i m not able to fine the implementation code the for that method.. please have look on the methods defined in Thread.class @src.zip file as below,
/**
* Returns a reference to the currently executing thread object.
*
* @return the currently executing thread.
*/
public static native Thread currentThread();
/**
* Causes the currently executing thread object to temporarily pause
* and allow other threads to execute.
*/
public static native void yield();
I know these are native methods, so don't we have code for these?
Thanks
Uday