Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can i use "finally" withouy try-catch?

 
samir vasani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My question is can i use finally without try and catch?
And if yes then in cases i can use.
Eleborate with an example
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use finally without a catch but you have to have the try.
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you try it? That is the easiest way to find out and you'll learn more from it then asking us.
 
Arun Giridharan
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouter Oet wrote:Why don't you try it? That is the easiest way to find out and you'll learn more from it then asking us.

You said it .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic