What is the range of data type short in Java?
A. -128 to 127
B. -32768 to 32767
C. -2147483648 to 2147483647
D. None of the mentioned
Answer:B
What is the range of data type short in Java?
A. -128 to 127 B. -32768 to 32767 C. -2147483648 to 2147483647 D. None of the mentioned
Explanation:Short occupies 16 bits in memory. Its range is from -32768 to 32767.