I was trying exception handling. below code i was not able to understand. Please explain how this works internally
public int method()
{
try
{
return 1;
}
catch(Exception e)
{
return 2;
}
finally
{
return 3;
}
}
Please explain me how this works in java