Which exception is thrown in Java when a class is not found at runtime?

Which exception is thrown in Java when a class is not found at runtime?

  1. A.

    NullPointerException

  2. B.

    ClassNotFoundException

  3. C.

    IOException

  4. D.

    ArithmeticException

  5. E.

    NoClassDefFoundError

Attempted by 238 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…