I just became the proud daddy of a beautiful baby girl. As all IT guys, I usually don't start with the manual when I get my hands on something new: exploring is the best way to learn something ;-) This time, though, I decided to do it by the book and read the JavaDoc first. The description of the sleep() method worries me a bit.... I wonder if there is a plugpoint when I can squeeze in a more reliable implementation of the sleep() method.
- public interface BabyGirl
Calling the sleep(long millisec) method suggests that the BabyGirl goes to sleep for the specified number of milliseconds.
public void sleep(long millis) throws java.lang.InterruptedException, java.lang.UnsupportedOperationException
- Calling the sleep(long millisec) method suggests that the BabyGirl
goes to sleep for the specified number of milliseconds. It's up to
the implementation to decide if it will actually do so.
millis- the length of time to sleep in milliseconds.
java.lang.InterruptedException- if the sleep is disrupted by anything.
java.lang.UnsupportedOperationException- if the implementation does not allow others to decide when sleeping is appropriate.