*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes InterruptedException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "InterruptedException" Watch "InterruptedException" New topic
Author

InterruptedException

Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi All,
Is everyone ignoring the InterruptedException on a wait() call? That is to say:

Thanks,
Michae Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Yes
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
Hello Michael:
I did not ignore it. I had try and catch block in my lock method as you have mentioned here.
-Bal
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I think he meant ignore, to be not putting any code in it's {} part. At least that how I took it.
Mark
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Mark and Bal,
I meant just not do anything in the catch block as Mark said. Sorry for the confusion.

Michael Morris
Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
I am sorry, it was my bad. My previous statement was not clear. I had following.

If there is any problem I can see it, I can pin point exact location that was my assumption.
-Bal
 
wood burning stoves
 
subject: InterruptedException
 
Similar Threads
Exception in Threads
Scheduling with Thread
wait() not syncronized on this but not throwing illegalMonitorStateException
thread doubt
Swallowing an InterruptedException?