Primitive wrapper class in Java: Difference between revisions

Content deleted Content added
Gprathour (talk | contribs)
mNo edit summary
Gprathour (talk | contribs)
mNo edit summary
Line 25:
|}
 
<div style="text-align:justify;">
<b>Don't get confused</b><br/>
The term mentioned <i>Primitive Wrapper Classes</i> <b>does not</b> mean that Wrapper classes are Primitive types in Java. It should be read this way, a class that wraps a primitive type. Wrapper classes can be used to store the same value as of a primitive type variable but the instances/objects of wrapper classes themselves are <i>Non-Primitive</i>. We cannot say that Wrapper classes themselves are Primitive types. They just wrap the primitive types.
</div>
 
 
The <code>Byte</code>, <code>Short</code>, <code>Integer</code>, <code>Long</code>, <code>Float</code>, and <code>Double</code> wrapper classes are all [[subclasses]] of the {{Javadoc:SE|java/lang|Number}} class.