Get Min and Max values of datatype long in Java
Description
The following code shows how to get Min and Max values of datatype long.
Example
// w w w .j a v a 2 s . co m
public class Main {
public static void main(String[] args) {
System.out.println(Long.MIN_VALUE);
System.out.println(Long.MAX_VALUE);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »