If angle brackets are entirely omitted, as in the following example,
bid = new Pair("ORCL", 32.07); // classic style
this reverts to the classic style, with Object automatically used for all generic type parameters, and resulting in a compiler warning when assigning to a variable with more specific types.
- Chapter 2: Object-Oriented Design
- from Data Structures and Algorithms in Java, 6th Edition
- Publisher: John Wiley & Sons
- Released: January 2014
Share this highlighthttp://www.safaribooksonline.com/a/data-structures-and/62393/