This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question 132

 
Jeff Shelley
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm not trying to be picky, but I missed this question when I wouldn't have if it were worded slightly differently.
(#132)TRUE or FALSE: if an exception is not caught, the finally block will run and the rest of the method is skipped.
My line of thinking is "what if an exception is not thrown?", or execution runs without throwing an exception. The rest of the method would execute then.
I think the question might be a bit better if it said "If an exception is thrown and not caught", or something like that.
Have an excellent day!
--Jeff
 
Preeti Rande
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then also ur finally block will get executed.
 
Abhijeet Mahalkar
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Excpetion is thrown and you don't catch it still the finally block will get executed it don't get executed on if
1 u switch off the computer
2 u call System.exit()
3 there is a exception in Finally block itself..
4 Light Goes off (HA HA HA ha )
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic