Primitive classes
In this section, I'd like to take a very quick look at the primitive classes available to us in Java. In Java, we often say that strings are special because they have a literal interpretation identified by these double quotation marks; however, we still interact with them primarily through the String class, rather than a string primitive type that is not actually available to us.
In the case of a standard Java primitive, however, we generally interact with it through its primitive typing method. For every primitive type, we do have a corresponding primitive class. These are the Integer, Character, and Float classes and so on. For the most part, the explicit uses of these classes where we create an instance of them and then ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access