What is the numerical range of a char in Java?
A. -128 to 127
B. 0 to 256
C. 0 to 32767
D. 0 to 65535
Answer:D
What is the numerical range of a char in Java?
A. -128 to 127 B. 0 to 256 C. 0 to 32767 D. 0 to 65535
Explanation: Char occupies 16-bit in memory, so it supports 2^16 i:e from 0 to 65535.