CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE DETAILS
Question :
What is meant by polymorphism in java?How can we achieve polymorphism?Explain with an example.
Contact   Contact
Category J2EE Interview Questions
Rating (3.9) By 40 users
Added on 8/17/2007 1:36:40 PM
Views 1791
Rate it!
Answers:

Any thing that exist in more than one form is known as the polymorphism.

Example of ploymorphism.
1. Abstract class(Because, In the abstract super class its define some general information, In the subclass it must be override. It it's many form.(It supports single Inheritance))

2. Interface( same as above but supporting multiple inheritance )

3. Method overloading( In the class having a method is same return type but different signature )



 Posted by: sivachandran    

Contact sivachandran  Contact sivachandran

Ex:Consider Birds like crow, parrot, peacock etc.. all r different but coming under a common name called birds likewise polymorphism is nothing but one in many form



 Posted by: Madhan    

Contact Madhan  Contact Madhan


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
can you tell me the steps for how to create and execute and run the Ejb simple stateless session application in websphere application server6.0 and Ide is RAD6.0
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL J2EE Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/11694/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.73