I tried to use yield() in the main method, when I called yield() from the currently running thread that is main() then the o/p is
in.run()
after t.start()
May be you can make out the answer why it was reverse before.

Question: I have a doubt, how can you say the thread priority is 5.
class Test3 implements Runnable {
public static void main(String args[]) {
Test3 rt = new Test3();
Thread t = new Thread(rt);
t.start();
Thread.yield();
System.out.println("after t.start()");
}
public void run() {
System.out.println("in run()");
}
}
thanks
sdev