MCQ Single Best Answer Easy

QWhat is the numerical range of a char data type in Java?

ID: #22187 char - Data Type in Java 81 views
Question Info
#22187Q ID
EasyDifficulty
char - Data Type in JavaTopic

Choose the Best Option

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

  • A -128 to 127
  • B 0 to 255
  • C 0 to 32767
  • D 0 to 65535
Correct Answer: Option D

Explanation

The char data type in Java is a 16-bit unsigned integer, ranging from 0 to 65535. It is used to represent Unicode characters.

Share This Question

Challenge a friend or share with your study group.