Sail E0 Webinar
Question
What is the range of data type short in Java?
Options:
A .  -128 to 127
B .  -32768 to 32767
C .  -2147483648 to 2147483647
D .  None of the mentioned
Answer: Option B


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



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers