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 are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
Why we need Finally with try? pls expain with ur example..
What is the purpose of premetive data types in java?
What is the use of predicate in java 8?
How do you replace a string in java?
There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?
What is <> used for in java?
What is Session reduplication and how its done?
Which one of the following suits the description of a string better: derived or primitive?
What is the difference between serializable and externalizable interfaces?
What are inbuilt functions?