Abstract
Everything in Java is an object. As you learned in Chapter 9, you can even make the primitive values act like objects by wrapping them in the wrapper classes. The wrapping and unwrapping of primitive values, which is also called boxing and unboxing, has been automated in J2SE 5.0 and is called autoboxing. So, you can assume that all the data types in Java can be treated like objects of classes. All the objects in Java share some methods, which they inherit from the Object class at the root of the Java class hierarchy—that is, it is a superclass of all classes in Java.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Paul Sanghera, Ph.D.
About this chapter
Cite this chapter
(2006). Collections and Generics. In: SCJP Exam for J2SE 5. Apress. https://doi.org/10.1007/978-1-4302-0173-1_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0173-1_10
Publisher Name: Apress
Print ISBN: 978-1-59059-697-5
Online ISBN: 978-1-4302-0173-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)