aspose file tools
The moose likes Threads and Synchronization and the fly likes run() method and exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "run() method and exceptions" Watch "run() method and exceptions" New topic
Author

run() method and exceptions

Kev D'Arcy
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
Probably a stupid question, but can a run method in a thread throw RuntimeExceptions that can be caught in the parent thread?
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
Not directly. Take a look at the uncaughtException(Thread, Throwable) method of ThreadGroup.
Peter Haggar
author
Ranch Hand

Joined: Jan 03, 2001
Posts: 106
Take a look at my article in the August 1998 issue of Java Report titled "Multithreaded Exception Handling in Java".
Peter Haggar


Senior Software Engineer, IBM
author of: Practical Java
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: run() method and exceptions
 
Similar Threads
how to make simple sleep()
Related to thread
Focus Lost problem
Thread Start() method
Using interupt to stop the Thread