Its very easy to introduce subtle logic errors by invoking static methods from instances. The fact is that this does not do what you think:
Thread t = new Thread(...);
t.sleep(1000);
sleep - A static method that pauses the current executable thread, not a thread instance.
source
share