• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return statement in a try block

 
pradeepta chopra
Ranch Hand
Posts: 137
  • 0
  • 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
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic