MCQ – Java Exceptions

Q) Types of exceptions in Java programming are
  1. Checked exception
  2. unchecked exception
  3. Both A & B
  4. None
View Answer

Q) Checked exception caught at
  1. compile time
  2. run time
  3. Both at compile and run time
  4. None
View Answer

Q) Unchecked exception caught at
  1. compile time
  2. run time
  3. Both at compile and run time
  4. None
View Answer

Q) What exception can occur in the below java program if we access 5 element in the array that does not exist?
 

  1. ArrayIndexOutOfBoundsException
  2. ArithmeticException
  3. NullPointerException
  4. None
View Answer

Read More