19. Generic Classes and Methods: A Deeper Look

Objectives

In this chapter you’ll:

Image Create generic methods that perform identical tasks on arguments of different types.

Image Create a generic Stack class that can be used to store objects of any class or interface type.

Image Learn about compile-time translation of generic methods and classes.

Image Learn how to overload ...

Get Java 9 for Programmers 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.