We can find the maximum length of Integer with Built-in MAX_VALUE. But for BigInteger it doesn't work.
When I try to use MAX_VALUE for BigInteger it gives >> ERROR >> can not find symbol variable MAX_VALUE
public class ALL_datatype_length {
public static void main(String [] args){
byte a = Byte.MAX_VALUE;
short b = Short.MAX_VALUE;
int c = Integer.MAX_VALUE;
long d = Long.MAX_VALUE;
float e = Float.MAX_VALUE;
double f = Double.MAX_VALUE;
BigInteger g = BigInteger.MAX_VALUE; // >> Shows ERROR
System.out.println(a + "\t\t\t\tMaximum value of byte");
System.out.println(b + "\t\t\t\tMaximum value of short");
System.out.println(c + "\t\t\tMaximum value of integer");
System.out.println(d + "\t\tMaximum value of long");
System.out.println(e + "\t\t\tMaximum value of float");
System.out.println(f + "\t\tMaximum value of double");
}
}