In the following code snippet, the value of j changed to 20 in the finally block is ignored and the original value of 10 is returned.
public class Test{
public static void main(String args[]){
int i=testMethod(10);
System.out.println(i);
}
public static int testMethod(int j){
try{
return j;
}finally{
j=20;
}
}
}