Example
java
short myNum = 5000;
System.out.println(myNum);
Definition and Usage
The short keyword is a data type that can store whole numbers from -32768 to 32767.
The `short` keyword is a data type that can store whole numbers from -32768 to 32767.
short myNum = 5000;
System.out.println(myNum);
The short keyword is a data type that can store whole numbers from -32768 to 32767.