This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Interrupted Exception in Threads

 
Anudeep Duvvuri
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi
I read that Threads can throw Interrupted Exception when the Thread that is executing is interrupted. But how to get this Exception? I mean can any one explain me with a small program which generates this Interrupted Exception??

Thanks in advance
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
In the future, please UseOneThreadPerQuestion.(⇐click)

I'm locking this one. The discussion can continue in your other thread: http://www.coderanch.com/t/582134/java/java/Interrupted-Exception
 
    Bookmark Topic Watch Topic
  • New Topic