Originally posted by Cristiano Sganzerla:
so when the thread is awakened will the comment code execute?
Well, I guess it will depend on how the wait() method is awaken. If the wait() method just returns, because of a notify() call, then it will run the next line of code. If the wait() method throws an interrupt exception, because of an interrupt() call, then it will go to the catch clause.
This is no different from how any other method call returns.
Henry
[ January 21, 2007: Message edited by: Henry Wong ]