Look at the following program and tell what it will output when run:
public class ExceptionTest
{
public static void main(String[] args)
int number;
String str;
try
str = "xyz";
number = Integer.parseInt(str);
System.out.println("A");
}
catch(NumberFormatException e)
System.out.println("B");
catch(IllegalArgumentException e)
System.out.println("C");
finally
System.out.println("D");
System.out.println("E");
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here