Tags

From JPL 4th edition, the following are the same class.
"String" and "Integer" are "parameterized type".

Cell strCell = new Cell("hello");
Cell intCell = new Cell(22);
boolean same = (strCell.getClass() == intCell.getClass());
Advertisements