Chapter 6. Converting and Casting Primitives and Objects
Terms you'll need to understand:
Narrowing conversion
instanceof
Object hierarchy
Widening conversion
Interface references
Techniques you'll need to master:
Understanding how primitive data types are converted and cast
Understanding how object references are converted and cast
Understanding when an object reference cast is necessary
Understanding which cast operations are legal
Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.