-
What is the output of this program?
public class exception_Example
{
static void throwexception() throws ArithmeticException
{
System.out.print("50");
throw new ArithmeticException ("Exception");
}
public static void main(String args[])
{
try
{
throwexception();
}
catch (ArithmeticException e)
{
System.out.println("M");
}
}
}
-
- 50
- M
- 50M
- M50
- None of these
Correct Option: C
50M