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 oops in java?
What do negative exponents mean?
How can we make copy of a java object?
Is empty .java file name a valid source file name?
Can we define static methods inside interface?
What is regex used for?
How does remove work in java?
What does .equals do in java?
How do you clear a method in java?
Is there any tag in htm to upload and download files?
How many types of array are there?
Can we create constructor in abstract class ?
What is a treeset in java?
What is off heap memory?
what do you mean by java annotations?