✏️ Explanatory Question
class TryCatch
{
public static void main(String args[])
{
try
{
double x = 0.0;
throw new Exception("Thrown");
}
catch (Exception e)
{
System.out.print("Exception caught");
return;
}
finally
{
System.out.println("finally");
}
}
}
Output:
Exception caughtfinally