[2133] in java-interest
Re: throws declataration in Java/beta
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Tue Sep 26 00:03:37 1995
Date: Mon, 25 Sep 1995 13:49:51 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Jonathan Payne <jpayne@starwave.com>
Cc: dufourd@enst.enst.fr, pambrose@weblogic.com,
java-interest@java.Eng.Sun.COM
Hi Jon,
> But if I can't sleep in the Run method (as the mail below suggests),
> which is something you very commonly want to do, then I think
> something is horribly broken.
>
> What's the deal?
Of course you can sleep in the run method. The run method simply
can't throw any exceptions so when you call sleep you have to
catch the InterruptedException that it can throw.
Have fun,
Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com