8Understanding Polymorphism

CERTIFICATION OBJECTIVES

Polymorphism

Practical Examples of Polymorphism

Image Two-Minute Drill

Q&A Self Test

CERTIFICATION OBJECTIVE

Polymorphism

Exam Objective 1.5 Describe polymorphism as it applies to classes and interfaces, and describe and apply the “program to an interface” principle.

Polymorphism is a fundamental aspect of object-oriented programming languages. Java is no exception to this. Polymorphism allows the developer to write code that is more generic. The generic code is more flexible and allows for easier code reuse, another fundamental object-oriented principle. The concept of programming to an interface ...

Get SCJA Sun Certified Java Associate Study Guide (Exam CX-310-019) 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.