Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

return statement in a try block  RSS feed

 
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
Sheriff
Posts: 55341
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!