Similar question has been asked here. But that does not provide answer.
try {
object = (Dev)Class.forName("Dev").newInstance();
} catch (Exception e)
{
throw new RuntimeException("Devis not available");
}
finally
{
return object;
}
But finally block gives warning :
finally block does not complete normally
But as per my understating, finally block always gets executed and will return the object. Why warning says that it will not get completed normally?