This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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,.
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