From the course: Java SE 11 Developer (1Z0-819) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Learning objectives

Learning objectives

(gentle music) - In this lesson, we'll be investigating aspects and consequences of polymorphism and casting. We'll start by differentiating object and reference type and clarifying how the two can differ. Next, we'll investigate casting, including casts that the compiler allows versus those that it rejects. Virtual method indication is the topic that follows. What behavior results from a given instance method call, and what calls are permitted? We'll also check in on the effect of the at override annotation. This lesson closes with an investigation of how the Liskov Substitution Principle guides Java's rule about co-variant returns from overriding methods.

Contents