1.

What is the range of short data type in Java?(a) -128 to 127(b) -32768 to 32767(c) -2147483648 to 2147483647(d) None of the mentionedThis question was posed to me in my homework.Origin of the question is Integer and Floating Data Types topic in portion Data Types, Variables and Arrays of Java

Answer»

Correct choice is (b) -32768 to 32767

Easy explanation: SHORT OCCUPIES 16 bits in MEMORY. Its RANGE is from -32768 to 32767.



Discussion

No Comment Found

Related InterviewSolutions