MCQ Practice Single Best Answer Topic: Literals in Java - MCQ

Q Which type of literal is assigned to the variable "result"?
boolean result = true;

Question ID
#2091
Subchapter
Literals in Java - MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A string
  • B boolean
  • C bool
  • D char
Correct Answer: B

Explanation

boolean

Share This Question

Share this MCQ with your friends or study group.