Polymorphism lets one piece of code call shape.area() on a Circle, Rectangle or Triangle without caring which concrete subtype sits inside the variable at compile time. The JVM dispatches the call to the actual runtime object's class automatically.
More lessons in Complete Core Java