Overview of Java Language Tokens in Java Question #20113
Single Choice Easy

QWhich of the following is an example of a keyword token in Java?

ID: #20113 Tokens in Java 97 views
Question Info
#20113Q ID
EasyDifficulty
Tokens in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1234
  • B true
  • C "Hello"
  • D void
Correct Answer

Explanation

In Java, "void" is a keyword used to indicate that a method does not return any value. Keywords are reserved words with specific meanings in the Java language.

Share This Question

Challenge a friend or share with your study group.