June 2018
Beginner
722 pages
18h 47m
English
Casting is not the only way to convert one primitive type to another. Each of the primitive types has a corresponding reference type – a class called a wrapper class of a primitive type.
All wrapper classes are located in the java.lang package:
Most of them—except the Boolean and Character classes—extend the java.lang.Number class, which has the following abstract method declarations:
This means that every Number class child has to implement all of them. Such methods are implemented in the ...
Read now
Unlock full access