Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. What is the numerical range of a char in Java?
  2. A.
    -128 to 127
    B.
    0 to 256
    C.
    0 to 32767
    D.
    0 to 65535

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment