Skip to main content

Collections and Generics

  • Chapter
SCJP Exam for J2SE 5
  • 485 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics