Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. What is the range of data type short in Java?
  2. A.
    -128 to 127
    B.
    -32768 to 32767
    C.
    -2147483648 to 2147483647
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Short occupies 16 bits in memory. Its range is from -32768 to 32767.


Be The First To Comment