Xoriant interview question

Polymorphism in Java and its types