Min and Max values of datatype long
public class Main {
public static void main(String[] args) {
System.out.println(Long.MIN_VALUE);
System.out.println(Long.MAX_VALUE);
}
}
Output:
-9223372036854775808
9223372036854775807
Home
Java Book
Runnable examples
Java Book
Runnable examples
Data Type Long:
- Create Long from long value
- Convert Long to numeric primitive data types
- Convert Long to String
- Convert byte value to mega byte value
- Min and Max values of datatype long