Hi Folks.I have a doubt in the following code.
code:
---------------------------------------------------------------------------
public class Alpha {
public static
string output = �� ;
public static void foo(int i) {
try {
if(i == 1) {
throw new Exception ();
}
output + = �1�;
}
catch(Exception e) {
output + = �2�;
return;
}
finally {
output + = �3�;
}
output + = �4�;
}
public static void main (String args[]) {
foo(0);
foo(1);
}
}
----------------------------------------------------------------
When foo(0) is called it prints 134.When foo(1) is called, what does it print 23 or 234?.I was confused about this.I believe it should be 134234(on the whole).Am I correct?.