|
INTERVIEW QUESTIONS
J2EE
CORE JAVA
DETAILS
Question: How does Java implement polymorphism?
Answer: (Inheritance, Overloading and Overriding are used to achieve Polymorphism in java). Polymorphism manifests itself in Java in the form of multiple methods having the same name.
* In some cases, multiple methods have the same name, but different formal argument lists (overloaded methods). * In other cases, multiple methods have the same name, same return type, and same formal argument list (overridden methods).
|
|
|
Category |
Core Java Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9052 users |
Added on |
9/23/2014 |
Views |
65706 |
Rate it! |
|
|
Question:
How does Java implement polymorphism?
Answer:
(Inheritance, Overloading and Overriding are used to achieve Polymorphism in java). Polymorphism manifests itself in Java in the form of multiple methods having the same name.
* In some cases, multiple methods have the same name, but different formal argument lists (overloaded methods). * In other cases, multiple methods have the same name, same return type, and same formal argument list (overridden methods). Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Core Java Interview Questions & Answers - Exam Mode /
Learning Mode
|