11 Special Types of Java SE
“Following advice means shifting responsibility.”– Johannes Urzidil (1896–1970)
When we program with Java Platform, Standard Edition (Java SE), we often unconsciously use types from the standard library. This connection often goes entirely unnoticed because, for instance, the java.lang package is imported automatically—and thus types like String or Object are always included. On the other hand, some things happen behind the scenes, such as the following behaviors:
-
If a superclass doesn’t extend its own class, it automatically inherits from java.lang.Object .
-
If a primitive data type is given but an object type is desired, the compiler converts the simple data type to a wrapper object in a process is referred ...
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