For the sake of performance, not everything in Java is an object.
There are also primitives, such as int, long, float, double, etc. |
Integer has the no-arg byteValue, doubleValue, floatValue, intValue, longValue, and shortValue methods
that convert the wrapped value to a byte, double, float, int, long, and short, respectively.
In addition, the toString method converts the value to a String. |