Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

Java int Keyword

❮ Java Keywords


Example

int myNum = 100000;
System.out.println(myNum);

Run example »


Definition and Usage

The int keyword is a data type that can store whole numbers from -2147483648 to 2147483647.


Related Pages

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


❮ Java Keywords