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 replacement method of stop() of thread
Explain what is Marker interface?
Iterator in the HashMap is fail-safe means what?
What is polymorphism in java? What are the kinds of polymorphism?
Give the hierarchy of inputstream and outputstream classes.
What are the library functions in java?
hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class
Are registers volatile?
How do you avoid global variables?
What is the size of boolean variable?
What is the r character?
what are the jsp tags with example?