Big Java Late Objects
Big Java Late Objects
2nd Edition
ISBN: 9781119330455
Author: Horstmann
Publisher: WILEY
Expert Solution & Answer
Book Icon
Chapter 18, Problem 2RE

Explanation of Solution

Difference between generic class and ordinary class:

Generic classOrdinary class
The type variable of the generic class is shown by a type variable description in angle bracket.The type variables of the ordinary class are written normally without specifying in inside the angle bracket.
By conventions, the type of the generic class are usually single uppercase letters like, “T”, “S”, “K”, “V” and so on.The type of ordinary classes are the original primitive types, “int”, “String”, “double” and so on...

Blurred answer