Home » JAVA Programming » Basic Datatypes » Question
  1. What is the numerical range of a char data type in Java?
    1. -128 to 127
    2. 0 to 256
    3. 0 to 65535
    4. 0 to 32767
    5. None of these
Correct Option: C

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



Your comments will be displayed only after manual approval.