Java Interview Questions - Polymorphism
Here are the most popular Java interview questions about Polymorphism.See all questions
What is Polymorphism?
Polymorphism is the ability to have one interface for accessing several implementations. The interface determines the requirements for the implementation. The implementation can be accessed using the interface because it abides to the interface.
What is method overloading and method overriding?
Method overloading is having several forms of the same method, each differing in the formal argument list.
Method overriding is when the exact same method definition is created in a sub-class, which results in hiding the base-class method.