Sail E0 Webinar
Question
What is the numerical range of a char in Java?
Options:
A .  -128 to 127
B .  0 to 256
C .  0 to 32767
D .  0 to 65535
Answer: Option D


Char occupies 16-bit in memory, so it supports 2^16 i:e from 0 to 65535.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers