下面一些常用的常量的程序,请解释带编号的语句。
public class SomeConstTest{
public static void main(String args[]){
//1
System.out.println("Byte.MAX_VALUE ="+ Byte.MAX_VALUE);
System.out.println("Byte.MIN_VALUE ="+ Byte.MIN_VALUE);
System.out.println();
//输出int型的最大值与最小值
System.out.println("Integer.MAX_VALUE ="+ Integer.MAX_VALUE);
System.out.println("Integer.MIN_VALUE ="+ Integer.MIN_VALUE);
System.out.println();
//2
System.out.println("Long.MAX_VALUE ="+ Long.MAX_VALUE);
System.out.println("Long.MIN_VALUE ="+Long.MIN_VALUE);
System.out.println();
//3
System.out.println("Float.MAX_VALUE ="+ Float.MAX_VALUE);
System.out.println("Float.MIN_VALUE ="+ Float.MIN_VALUE);
System.out.println();
//4
System.out.println("Double.MAX_VALUE ="+ Double.MAX_VALUE);
System.out.println("Double.MIN_VALUE ="+ Double.MIN_VALUE);
System.out.println();
//5
System.out.println("Float.POSITIVE_INFINITY ="+ Float.POSITIVE_INFINITY);
System.out.println("Float.NEGATIVE_INFINITY ="+ Float.NEGATIVE_INFINITY);
System.out.println();
//输出double型的正无穷大与负无穷大
System.out.println("Double.POSITIVE_INFINITY ="+ Double.POSITIVE_INFINITY);
System.out.println("Double.NEGATIVE_INFINITY ="+ Double.NEGATIVE_INFINITY);
System.out.println();
//输出float型0/0
System.out.println("Float.NaN ="+ Float.NaN);
System.out.println();
//输出double型0/0
System.out.println("Double.NaN ="+ Double.NaN);
System.out.println();
}