Q)if an exception is not caught, the finally block will run and the rest of the method is skipped. Is this true. When the exception is not caught the finally block runs and again exception passes into the same method,.
posted 16 years ago
Yes, it's true. Because the exception has to be handled somewhere, and since it's not going to be in the method (it wasn't caught), then it has to propagate upwards (the exception) and control must leave the method in which the Exc was thrown and not caught (AFTER executing the finally if present, of course).
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD