1.

Which of the following is a type of polymorphism in Java?(a) Compile time polymorphism(b) Execution time polymorphism(c) Multiple polymorphism(d) Multilevel polymorphismI have been asked this question in unit test.The query is from Concepts of OOPs topic in chapter Java Environment & OOPS Concepts of Java

Answer» CORRECT option is (a) Compile TIME polymorphism

Explanation: There are TWO types of polymorphism in JAVA. Compile time polymorphism (overloading) and runtime polymorphism (OVERRIDING).


Discussion

No Comment Found

Related InterviewSolutions