The moose likes Mock Exam Errata and the fly likes Question 132 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Question 132" Watch "Question 132" New topic

Question 132

Jeff Shelley
Ranch Hand

Joined: May 21, 2003
Posts: 70
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!

It's almost Friday
Preeti Rande

Joined: Jun 26, 2003
Posts: 5
then also ur finally block will get executed.
Abhijeet Mahalkar

Joined: Aug 02, 2003
Posts: 4
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:
subject: Question 132
It's not a secret anymore!