OCA Java SE 8 Exception - OCA Mock Question Exception 19








Question

Which of the following exceptions are thrown by the JVM?

  1. ArrayIndexOutOfBoundsException
  2. ExceptionInInitializerError
  3. java.io.IOException
  4. NullPointerException
  5. NumberFormatException




Answer



A, B, D.

Note

NumberFormatException and java.io.IOException is thrown programmatically.