Possible Duplicate:
In Java, does return trump finally?
What does this function return?
public int wasExceptionThrown() {
try {
if(1==1)
throw new RuntimeException();
return 1;
} catch(Exception e) {
return 2;
} finally {
return 3;
}
return 0;
}