Home / Programming MCQs / JAVA MCQs / Question

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
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.