Java Programming Language › Tokens in Java › Question #20121
Single Choice Easy

QWhich type of token is used to represent a sequence of characters in Java?

ID: #20121 Tokens in Java 128 views
Question Info
#20121Q ID
EasyDifficulty
Tokens in JavaTopic

Choose the Best Option

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

  • A Numeric Literal ✔ ✖
  • B Boolean Literal ✔ ✖
  • C String Literal ✔ ✖
  • D Identifier ✔ ✖
Correct Answer

Explanation

In Java, a string literal is a token representing a sequence of characters enclosed within double quotes (e.g., "Hello").

Share This Question

Challenge a friend or share with your study group.