What is compile time polymorphism?
Answers were Sorted based on User's Feedback
Answer / pooja
In compile time polymorphism, the overloaded member
functions are selected for invoking, by matching arguments
type,number and sequence by compiler at compile time.
it is also called early or static binding.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / shubh
When object is bound with its functionality at compile time.
Then polymorphism is called compile time polymorphism.
Function overloading is a way to achieve compile time
polymorphism in java.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / charles i
overloading method and the compiler has to decide when to
call the method..
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / coolm
Function and operator overloading is compile time polymorphism.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sadikhasan palsaniya
method overloading with final keyword is known as compile
time polymorphism.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ahmad salam mehsu
This is another type of polymorphism also called as compile
time polymorphism or static binding. Using template provides
compile-time polymorphism.
So "compile time polymorphism" means function overloading.
It applies only to functions because they're all you can
overload.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / laukik
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 ? | 0 Yes | 0 No |
Answer / oneeb dadgar
It is also known as a Early-Binding.In this method, overloading method performs the different tasks at the different input parameters.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dimuth lasantha
One method can use another method using changes functions and operations.We can can mention it as method overloading.its means method name can't be change but method body and return type can be change.
| Is This Answer Correct ? | 0 Yes | 2 No |
What is the use of keywords in java?
How do you remove all elements from an arraylist in java?
Why java uses the concept of the string literal?
What is bytecode verifier?
Can a constructor be protected?
Explain numeric promotion?
Can we make the abstract methods static in java?
What is the difference between jdk and jre?
What is contract between hashcode and equal method?
What is a parameter in java?
Explain polymorphism citing an example.
What are the 8 primitive data types in java?