Java Programming Language Tokens in Java Question #20119
Single Choice Easy

QWhich of the following is an example of a reserved word in Java?

ID: #20119 Tokens in Java 108 views
Question Info
#20119Q ID
EasyDifficulty
Tokens in JavaTopic

Choose the Best Option

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

  • A Variable
  • B Function
  • C Class
  • D Public
Correct Answer

Explanation

In Java, "public" is a reserved word, also known as a keyword. Reserved words have predefined meanings in the language and cannot be used as identifiers.

Share This Question

Challenge a friend or share with your study group.