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 the purpose of checked and unchecked exceptions in JAVA?
In java, how many ways you can take input from the console?
Why parsing is done?
What is an infinite loop in java? Explain with an example.
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
How do you replace all in word?
What language is an assembler written in?
What is the difference between @before and @beforeclass annotation?
What are synchronized blocks in java?
What happens to the Exception object after handling an exception?
What is pangram in java?
What do you mean by inner class in java?
What do you know about the garbate collector?
What does the string method compareto () do?
Is age a discrete variable?