GeekInterview.com
Answered Questions

Need of polymorphism

Asked By: shanky_06 | Asked On: Dec 22nd, 2009

What is need of polymorphism in Java? What could have happen if polymorphism is not present?

Star Read Best Answer

Editorial / Best Answer

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

Answered by: avinash on: Sep 26th, 2012

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

Answered by: Rupesh Raghani on: May 31st, 2012

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...

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: