| Type | Field | Summary |
|---|---|---|
| static int | MAX_VALUE | The maximum value an int can have. |
| static int | MIN_VALUE | The minimum value an int can have. |
| static int | SIZE | The number of bits used to represent an int value. |
| static Class | TYPE | The Class instance representing the primitive type int. |
public class Main {
public static void main(String[] args) {
System.out.println(Integer.MAX_VALUE);
System.out.println(Integer.MIN_VALUE);
System.out.println(Integer.SIZE);
}
}
The output:
2147483647
-2147483648
32java2s.com | | Contact Us | Privacy Policy |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |