This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes New question on K&B Chapter 9 Question 17 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "New question on K&B Chapter 9 Question 17" Watch "New question on K&B Chapter 9 Question 17" New topic
Author

New question on K&B Chapter 9 Question 17

Karen Marie
Greenhorn

Joined: Nov 10, 2007
Posts: 23


Why does F execute? I would have thought after the exception was thrown it would stop execution.
kurt hanni
Ranch Hand

Joined: Aug 11, 2007
Posts: 140

the exception in hardy thread was handled by the catch block, so code will continue on and "F" will be printed.


SCJA, SCJP, SCJD, SCMAD, SCWCD, SCBCD, SCDJWS, SCEA, SOA, Spring Certified, OCP MySQL 5 Developer, PMP
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: New question on K&B Chapter 9 Question 17
 
Similar Threads
Doubt in Threads
thread question in k&b's book for 1.5 (3)
Query on the behavior of Thread sleep
Thread question from K&B book
How does this work?.Please explain