Java Software Engineer Question:
Download Job Interview Questions and Answers PDF
Can you explain me what is Polymorphism?
Answer:
Polymorphism is briefly described as “one interface, many implementations”. Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts – specifically, to allow an entity such as a variable, a function, or an object to have more than one form. There are two types of polymorphism:
☛ Compile time polymorphism
☛ Run time polymorphism
Compile time polymorphism is method overloading whereas Runtime time polymorphism is done using inheritance and interface.
☛ Compile time polymorphism
☛ Run time polymorphism
Compile time polymorphism is method overloading whereas Runtime time polymorphism is done using inheritance and interface.
Download Java Software Engineer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell us what are constructors in Java? | Explain me what is method overloading and method overriding? |