image

CHAPTER

12

Generics

imagen the previous chapter, you learned several new features introduced in the Java language beginning in J2SE 5.0. One important addition to the language we did not cover in the previous chapter is generics. As a matter of fact, the topic of generics is so vast it deserves a dedicated chapter to itself. Therefore, this chapter deals with the various aspects of generics.

In particular, you will learn the following in this chapter:

  Understanding what generics are
  Understanding why you would use generics
  Using built-in generic ...

Get Java Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.