Multiple choice

Which of the following exception classes is used in Java to deal with a requested method that does not exist in the program?

  1. NoSuchFieldException

  2. InstantiationException

  3. ClassNotFoundException

  4. NoSuchMethodException

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

This exception class is used in Java to deal with a requested method that does not exist in the program.