The exact text of question #68 is: "if an exception is not caught, the finally block will run and the rest of the method is skipped." I was wondering what sort of message was being skipped when I read the version of the question above.
Perhaps it is not clear that "if an exception is not caught" means "if there is an exception thrown which is not caught" rather than "if no exception is caught(possibly because none was thrown)". In the former case - if an exception is thrown and not caught - then the only thing in the method that will still execute is the finally clause.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marilyn de Queiroz: In the former case - if an exception is thrown and not caught - then the only thing in the method that will still execute is the finally clause.
Well, while we are in nitpicking mode, it's actually "finally clause(s)" - it could be more than one, in the case of nested try blocks.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Legend has it that if you rub the right tiny ad, a genie comes out.