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

QWhat is the purpose of a comment token in Java?

ID: #20120 Tokens in Java 125 views
Question Info
#20120Q ID
EasyDifficulty
Tokens in JavaTopic

Choose the Best Option

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

  • A To declare a variable
  • B To perform arithmetic operations
  • C To document and explain code
  • D To represent a constant value
Correct Answer

Explanation

Comments in Java are tokens used for documenting and explaining code. They are not part of the executable code and are intended for human readers.

Share This Question

Challenge a friend or share with your study group.