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