• Post Reply Bookmark Topic Watch Topic
  • New Topic

return statement in a try block

 
pradeepta chopra
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if there is a return
statement in the try block, the finally block executes right after the return
statement is encountered, and before the return executes

this is text from k&b book.
i couldnot understand how can we use a return statement in the try block.
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!