File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes sleep() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "sleep()" Watch "sleep()" New topic
Author

sleep()

suman deb
Ranch Hand

Joined: Jul 14, 2005
Posts: 54
Sleep() throws which exception?
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Why don't you check the API?


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Sleep does not always throw an exception, only when the thread is interrupted.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
jQuery in Action, 2nd edition
 
subject: sleep()