Content deleted Content added
→The Difference between Wrapper Classes and Primitive Types: clean up, typo(s) fixed: etc, → etc., using AWB |
No edit summary |
||
Line 6:
:{| class="wikitable"
! Primitive type !! Wrapper class !! Constructor
|-
| <code>byte</code> || {{Javadoc:SE|java/lang|Byte}} || <code>byte</code> or <code>String </code>
Line 27:
<div style="text-align:justify;">
==The
Primitive wrapper classes are not the same thing as primitive types. Whereas variables, for example, can be declared in Java as data types '''double''', '''short''', '''int''', etc., the primitive wrapper classes create instantiated objects and methods that inherit but hide the primitive data types, not like variables that are assigned the data type values.<ref>J. Murach, ''Murach's Java Programming'', 4th Edition, Mike Murach and Associates, Inc., 2011.</ref>
Line 52:
}}</ref>
==The
The wrapper class named '''
Although it is a wrapper class, the {{Javadoc:SE|java/lang|Void}} class provides an object representation of the [[void type|<code>void</code>]] return.
|