O'Reilly logo

Ivor Horton's Beginning Java™ 2, JDK™ 5th Edition by Ivor Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Generic Class Types

Generic class types are not a separate capability from the class and interface types that you have seen in earlier chapters. The facility for defining generic class and interface types is an extension of the ordinary definition of classes and interfaces that you are already familiar with that enables you to define families of classes and interfaces. In this chapter you will learn:

  • What a generic type is

  • How you define a generic type

  • How you specify type parameters for a generic type

  • What parameter type bounds are and how you use them

  • What wildcard type specifications are and how you use them

  • How you define bounds for a wildcard

  • How you define and use parameterized methods

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required