return type
publicfloat parseFloat( String s )
{
float f = 0.0f;
try
{
f = Float.valueOf( s ).floatValue();
return f ;
}
catch(NumberFormatException nfe)
{
f = Float.NaN ;
return f;
}
finally
{
f = 10.0f;
return f;
}
}
In the above code irrespective of whether exception is thrown or not we have 2 return types. finally is always executed, so does that mean that return of try and catch will not be executed?

