Multiple choice

Which of the following exceptions is thrown by the JVM, when it was unable to find the class that should be loaded at the runtime ?

  1. ClassCastException

  2. IllegalAccessException

  3. ClassNotFoundException

  4. IllegalMonitorStateException

  5. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JVM throws ClassNotFoundException, if it is unable to find the class that is to be loaded at the runtime.