range of int in java code example
Example 1: range of int
TypeName Bytes Range of Values
int 4 -2,147,483,648 to 2,147,483,647
Example 2: int java
boolean result = true;
char capitalC = 'C';
byte b = 100;
short s = 10000;
int i = 100000;
Example 3: java long literal
to declare a Long literal in java, add 'L' to the end of
an integer literal
examples:
12312345514316L
59741316635446100055330L
465414966143L