Java short type
In this chapter you will learn:
Description
The size of Java short type is between byte and integer.
Size and value
short is a signed 16-bit type. short type variable has a range from -32,768 to 32,767.
Example
Here are some examples of short variable declarations:
short s;
short t;
Next chapter...
What you will learn in the next chapter:
- Java int type introduction
- Size and value for Java int type
- What is octal integer and how to use it in Java
- What is hexadecimal integer and how to use it in Java