Jai Mani wrote:Thank you Jesper de Jong, that clears up a lot of stuff.
But I have a new question now
Inside the join() method wait() is called, what about its exceptions Where are they handled ?
Which exceptions are you referring to? The exceptions from the wait() method, or any unhandled exceptions from the running thread?
For the first case, the wait() method and the join() method has the same "throws" signature, so the wait() method exception get propagated up. For the second case, any unhandled exceptions from the thread goes to the threads uncaught exception hander -- which can set using the Thread class.
Henry