Y

Yami Thakur • 9.05K Points
Tutor III

Q. What is the range for the type of char data in Java?

  • (A) 0 to 256
  • (B) -128 to 127
  • (C) 0 to 65535
  • (D) 0 to 32767
  • Correct Answer - Option(C)
  • Views: 180
  • Filed under category JAVA

Explanation by: Yami Thakur
Char takes 16-bit memory, so it supports 216, that is from 0 to 65535.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics