Perhaps we could agree that if you modified the statement to be "If an unchecked exception is thrown in a try block that is not caught by an exception clause, the runtime exception will be printed after executing the finally block".
A
java files never goes without catching unchecked exception. Compiler will not compile the java file unless you catch that unchecked exception!
No, actually, he's not correct under any circumstances. Returning from a method inside a finally block will "cancel" all pending exceptions, caught or uncaught, whether there's a matching catch block or even no catch block at all.
I too agree. If we have simple SOP statement in finally block, then the
RuntimeException thrown in try block will be printed on the console. I need to elaborately study on this...
Narendranath
--
Always try to write right statements
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)