Custom Search
What is the difference between the sleep() and wait() methods?
The code sleep(1000); sets thread aside for exactly one second. Whereas the code wait(1000); causes a wait of up to one second.
The prevalent collection of Java Interview FAQ’s with answers, explanations, code and much more.