I’m reading the book Beginning Java 9 fundamentals and in relation to creating wrapper objects the author says:
“All wrapper classes are immutable. They provide three ways to create their objects:
1-Using constructors.
2-Using the valueOf() factory methods.
3-Using parseXxx() method, where Xxx is the name of the wrapper class. It is not available in the Character class.
The first and the second point I have clear, but the third I do not finish to understand it completely. But the API says that Integer.parseXxx returns a primitive. Does it make any sense?