Home / Java Programming / Language Fundamentals :: Discussion

Discussion :: Language Fundamentals

  1. What is the numerical range of a char?

  2. A.
    -128 to 127
    B.
    -(215) to (215) - 1
    C.
    0 to 32767
    D.
    0 to 65535

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    A char is really a 16-bit integer behind the scenes, so it supports 216 (from 0 to 65535) values.


Be The First To Comment