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 tree node in java?
what is the difference between a threads start() and run() methods? : Java thread
If you are given the name of the function at run time how will you invoke the function?
Is null in java?
What is exception in java?
What is ‘is-a ‘ relationship in java?
What is field name?
Can you override static methods?
What is scanner in java?
do I need to use synchronized on setvalue(int)? : Java thread
Which is bigger float or double java?
Can main() method in java can return any data?
can rmi and corba based applications interact ?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What are keywords and reserved words in java?