I am very well aware of the situation in which the try, catch and finally work but i have a program code for which i am not able to determine what the sequence is..
Here goes the code:
Now my question is what happens if there is a Sql error in the case 1, will the finally be executed and then the error is caught or only the error is caught without finally.
"Failure is not when you fall down; its only when you fail to get up again."
Ernest Friedman-Hill
author and iconoclast
Marshal
It goes "through" the finally block and is caught.
Ulas Ergin
Ranch Hand
Joined: Oct 10, 2002
Posts: 77
posted
0
if an exception occurs in the try block of case 1 *first finally block of the try in case 1 will be executed *exception will be handled by the catch block of the outer try since you have no catch block in the case 1's try
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.