Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

New question on K&B Chapter 9 Question 17  RSS feed

 
Karen Marie
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Why does F execute? I would have thought after the exception was thrown it would stop execution.
 
kurt hanni
Ranch Hand
Posts: 140
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the exception in hardy thread was handled by the catch block, so code will continue on and "F" will be printed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!