Multiple Choice
What will the following code display? String input = "99#7";
Int number;
Try
{
Number = Integer.parseInt(input) ;
}
Catch(NumberFormatException ex)
{
Number = 0;
}
Catch(RuntimeException ex)
{
Number = 1;
}
Catch(Exception ex)
{
Number = -1;
}
System.out.println(number) ;
A) -1
B) 0
C) 1
D) 99
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q23: When an exception is thrown _.<br>A) it
Q24: When an exception is thrown by a
Q25: A catch clause that uses a parameter
Q26: In Windows, which of the following statements
Q27: An exception object's default error message can
Q29: A file that contains raw binary data
Q30: If a random access file contains a
Q31: In versions of Java prior to Java
Q32: When you write a method that throws
Q33: What will be the result of the