Multiple choice

What is the meaning of 'NoSuchFieldException' in Java?

  1. It ensures that the access to a class is denied.

  2. It ensures that there is an attempt to create an object of an abstract class or interface.

  3. It ensures that one thread has been interrupted by another thread.

  4. It ensures that the particular class is not found.

  5. None of the above

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

This is the correct choice. NoSuchFieldException ensures that the requested field does not exist.