Possible Duplicate:
Java: System.out.println and System.err.println out of order
Why this code
System.err.println("err");
System.out.println("out");
prints
out
err
on Eclipse console?
UPDATE
The same code prints in correct order if I run it from command line.
UPDATE
If I fix it as
System.err.println("err");
Thread.sleep(5);
System.out.println("out");
It prints correctly in Eclipse too