Need of polymorphism
What is need of polymorphism in Java? What could have happen if polymorphism is not present?
Answered by: syamala235
View all answers by syamala235
Member Since Mar-2010 |
Answered On : Apr 8th, 2010
Polymorphism in simple terms means one name many forms. Polymorphism enables one entity to be used as a general category for different types of actions. The specific action is determined by the exact nature of the situation.
Polymorphism exists in three distinct forms in Java: • Method overloading • Method overriding through inheritance • Method overriding through the Java interface
jdbc,servlets,jsp have come through polymorphism,if not there we have to remember all dependent classes related to DB,Servers...to use in our java coding
The basic reason behind polymorphism is that we can implement different behaviors of the same object depending upon the reference type passed to an object.
In case of static polymorphism(Method OverL...
What are the things you wish to achieve in 5 years?
How do you handle workplace problems?
Describe a time when you had to convince a friend ?
What do you think about continuous learning?
Describe a time when you had to listen to someone.
Have you experienced being given too many tasks?
Do you like working in a team or alone? Explain.
Tell me about a skill you recently acquired or improved.
What do you think about our company?
BPO Career for BTech Graduates
Ask Interview Question?
Have Career Question?
Ask Only Career questions.