Look at the following program and tell what the program 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");
}
System.out.println("D");
}
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.