That is plain wrong.
Java does not support polymorphism. So your example is wrong.
Java only supports single inheritance and NOT multiple inheritance.
In short words in Java one class can extend another one BUT only ONE class
(and not many which would be polymorphism)