A generic is a “parameterized” class that can work with more than one type of object. You specify the type of object it can work with when you instantiate the class.

Most commonly, you use the ArrayList class in its generic form.

Eclipse example: generics


Stay current with the latest in tech comm
Keep current with the latest trends in technical communication by subscribing to the I'd Rather Be Writing newsletter. 4,500+ subscribers