try
{
finalValue = myValue.divideBy( herValue );
}
catch( DivideByZeroException excep )
{
// Deal with the exception here
}
finally
{
// Clean up after both success and failure
}
It is a COMPILE TIME error if a method that throws an
exception is called, and the exception is not handled by the caller
(unless the calling method throws it on).