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