Please take a look into the below code
try{
return 0;
}
finally{
return 1;
}
The output of the program is 1.
I want to understand why the compiler is not throwing any error?
Why the java developers allowed the above possible programming?
Please help me to understand the concept and why it is handled this way by jvm.