In general, a narrowing conversion of reference types requires an explicit cast. Also, the correctness of a narrowing conversion may not be verifiable by the compiler. Thus, its validity should be tested by the Java runtime environment during program execution.
- 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/62387/