Skip to content

Glossary: Data Structures and Algorithms in Java

generic class

Also written: generics, generic

A class with a type placeholder such as `<T>` that the user picks, so one `ArrayStack<T>` or `Node<T>` can hold strings, characters or anything else. Type arguments must be classes, such as `Character` rather than `char`.

Where the book teaches it

Related terms

Comparableautoboxing