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
Which is better list or arraylist in java?
What is stack explain?
Does constructor be static?
what is singleton in java?
What is immutable data?
Give an example of use of pointers in java class.
Explain about arraylist?
Does java list allow null?
What do you mean by a JVM?
What is method overloading in JAVA? Why is it not present in C ?
What are the types of java languages?
What is formatted output?
What is a class in java?
What is the collections api in java programming?
What does the “static” keyword mean?