THE WORLD'S LARGEST WEB DEVELOPER SITE

Java short Keyword

❮ Java Keywords


Example

short myNum = 5000;
System.out.println(myNum);

Run example »


Definition and Usage

The short keyword is a data type that can store whole numbers from -32768 to 32767.


Related Pages

Read more about data types in our Java Data Types Tutorial.


❮ Java Keywords