Example
java
long myNum = 15000000000L;
System.out.println(myNum);
Definition and Usage
The long keyword is a data type that can store whole numbers from -9223372036854775808 to 9223372036854775808.
Note that you should end the value with an "L":
The `long` keyword is a data type that can store whole numbers from -9223372036854775808 to 9223372036854775808.
long myNum = 15000000000L;
System.out.println(myNum);
The long keyword is a data type that can store whole numbers from -9223372036854775808 to 9223372036854775808.
Note that you should end the value with an "L":