Which of the following is NOT a valid Java keyword?

2025

Which of the following is NOT a valid Java keyword?

  1. A.

    goto

  2. B.

    interface

  3. C.

    volatile

  4. D.

    include

Attempted by 77 students.

Show answer & explanation

Correct answer: D

Java has a fixed set of reserved keywords used for defining the structure and behavior of programs. While goto, interface, and volatile are reserved Java keywords, include is not part of the Java language. Java uses import statements instead of #include.

Explore the full course: Rssb Senior Computer Instructor