why java does compile time polymorphism at run time ?
Answer Posted / sarath
polymorphism can sub divided into two
1) Static Binding or Compile Time Checking
2) Dynamic Binding or Rum time Checking
Static Binding: method Overloading is the example.
The checking and assign process is done at
compile time itself. If any error occur it
will throw
Dynamic Binding: I have an Interface called Bicycle and it
is implemented in some sub classes
( like MRF.class ). We can create Object
like Bicycle bicycle = new MRF();
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is floating data type?
why an outer class cannot be declared as private?
State some situations where exceptions may arise in java?
Explain the JDB in depth & command line.
Explain public static void main(string args[]) in java.
What is the properties class in java programming?
What is class and object in java?
do I need to use synchronized on setvalue(int)? : Java thread
How does linkedhashmap work in java?
What are different types of classloaders?
Is minecraft java edition free?
What is the difference between keyword and identifier?
Can a set contain duplicates?
What is method reference in java?
What is difference between final and immutable?