Multiple Choice
import java.util.*;
Public class ExceptionExample1
{
Static Scanner console = new Scanner(System.in) ; public static void main(String[] args)
{
Int dividend, divisor, quotient; try
{
System.out.print("Enter dividend: ") ;
Dividend = console.nextInt() ;
System.out.println() ;
System.out.print("Enter divisor: ") ;
Divisor = console.nextInt() ;
System.out.println() ;
Quotient = dividend / divisor;
System.out.println("quotient = " + quotient) ;
}
Catch (ArithmeticException aeRef)
{
System.out.println("Exception" + aeRef.toString() ) ;
}
Catch (InputMismatchException imeRef)
{
System.out.println("Exception "
+ imeRef.toString() ) ;
}
Catch( IOException ioeRef)
{
System.out.println("Exception "
+ ioeRef.toString() ) ;
}
}
}Which of the following inputs would be caught by the second catch block in the program in the accompanying figure?
A) 0
B) 10
C) h3
D) -1
Correct Answer:

Verified
Correct Answer:
Verified
Q2: During program execution, if division by zero
Q6: Which of the following is NOT a
Q19: Which of the following statements is NOT
Q22: The JList GUI component generates events that
Q23: The class Throwable is derived from the
Q24: The order in which catch blocks are
Q38: import java.util.*;<br>Public class ExceptionExample1<br>{<br>Static Scanner console =
Q38: The class Object is derived from the
Q40: A message is returned by which method
Q46: int number;<br>Boolean done = false;do<br>{<br>Try<br>{<br>System.out.print("Enter an integer: