Change your code to
Double object = new Double("2.4");
int a = object.intValue();
byte b = object.byteValue();
float d = object.floatValue();
double c = object.doubleValue();
System.out.println(a);
System.out.println(a + b);
System.out.println(a + b + c);
System.out.println(a + b + c + d );
and explore
0
solved output: none error your probably allocating too much memory can anyone explain in detail