Languages
[Edit]
EN

Java - min and max int value (int range)

8 points
Created by:
Kara
601

In this short article, we would like to show what is min and max int value in Java.

Quick solution:

Integer in Java is in range from -2147483648 to 2147483647.

 

Practical example

Edit

Hint: Integer class is located in java.lang package and is imported automatically.

Output:

 

See also

Edit
  1. Java - min and max byte value

  2. Java - min and max short value

  3. Java - min and max long value

Alternative titles

  1. Java - min and max integer value
  2. Java - int value range
  3. Java - integer value range
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join