Explain the different forms of Polymorphism.

By: Karthik Printer Friendly Format    

Answer: From a practical programming viewpoint, polymorphism exists in three distinct forms in Java:

•	Method overloading 
•	Method overriding through inheritance 
•	Method overriding through the Java interface  


Ask a Question



Most Viewed Articles (in Interview )

Interview Question: What is the difference between EAR, JAR and WAR file?

Explain garbage collection?

Interview Question: What is deployment descriptor?

Can Entity Beans have no create() methods?

Explain the new Features of JDBC 2.0 Core API?

What types of comments are available in the JSP?

Interview Question: What is Struts?

Interview Question: How is the MVC design pattern used in Struts framework?

Interview Question: Does Struts include its own unit tests?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: What is the difference between sessioncontext and entitycontext?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Interview Question: What is the difference between find and select methods in EJB?

Latest Articles (in Interview)

Comment on this tutorial