To know the Java basic data type maximum limit and minimum value limit, write a small program is easy to know.
Test the maximum and minimum values for Integer, Long, Float, and Double, and the code is as follows:
public static void Main (string[] args) {System.out.println ("Integer.min_ VALUE = "+ Integer.min_value); System.out.println ("Integer.max_value =" + Integer.max_value); System.out.println ("Long.min_value =" + Long.min_value); System.out.println ("Long.max_value =" + Long.max_value); System.out.println ("Float.min_value =" + Float.min_value); System.out.println ("Float.min_normal =" + Float.min_normal); System.out.println ("Float.max_value =" + Float.max_value); System.out.println ("Double.max_value =" + Double.max_value); System.out.println ("Double.min_value =" + Double.min_value); The result of the output is as follows: You see for yourselves: Integer.min_value = -2147483648integer.max_value = 2147483647long.min_value =- 9223372036854775808long.max_value = 9223372036854775807float.min_value = 1.4e-45float.min_normal = 1.17549435e-38float.max_value = 3.4028235e38double.max_value = 1.7976931348623157e308double.min_value = 4.9E-324
Java basic data type Max limit and minimum value limit