Yield is a static method. It makes the currently running thread head back to the runnable state to allow other threads of same priority to get their turn, but there is no such guarantee.
Sudhansu said:
(Mon, Dec 20, 2010 11:35:47 PM)
yield() is a static method . Thes how we are invoking it for an instance using this.
Smith said:
(Sun, Oct 9, 2011 03:29:02 PM)
What is output for this program ?
Like
"In run
Leaving run"
or
like
"In run Leaving run"
Venky said:
(Sun, Dec 9, 2012 05:34:03 PM)
Is this possible to call super class's static method in sub class's non-static method without specifying classname(ie.yeild()).