Monthly Archives: April 2012

Difference between the methods sleep() and wait()

What’s the difference between the methods sleep() and wait()? The sleep method is used when the thread has to be put aside for a fixed amount of time. Ex: sleep(1000), puts the thread aside for exactly one second. The wait … Continue reading

Posted in Core Java, Java | Tagged | Leave a comment