What is compile time polymorphism?
Answer Posted / madhuri
Compile Time Polymorphism in Java is when you have the
several methods with same name and different parameters and
compiler has to decide how to select which method has to run
based on the arguments hence the name Compile time
polymorphism or method overloading.
| Is This Answer Correct ? | 24 Yes | 8 No |
Post New Answer View All Answers
What is the difference between preparedstatement and statement in java?
Define how objects are stored in java?
What do you understand by looping in java? Explain the different types of loops.
What access modifiers can be used for variables?
Explain the difference between the public, private, final, protected, and default modifiers?
Can we clone singleton object in java?
What are the main uses of java?
What is the difference between comparison done by equals method and == operator?
What are invisible components?.
What are the different types of inheritance in java?
Is hashset ordered?
What is the difference between break and continue statements?
Can we have any code between try and finally blocks?
What is the difference between overriding & overloading?
What is covariant return type?