19. Generic Classes and Methods: A Deeper Look
In this chapter you’ll:
Create generic methods that perform identical tasks on arguments of different types.
Create a generic Stack
class that can be used to store objects of any class or interface type.
Learn about compile-time translation of generic methods and classes.
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.