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 meant by attribute?
What does system.gc() and runtime.gc() methods do?
Which of the following is not an isolation level in the JDBC
How does sublist works in java?
Can we use static class instead of singleton?
Can a static class implement an interface?
Why unicode is important?
Write a program to find the greatest of three numbers in java?
How do I convert a string to an int in java?
Why we used break and continue statement in java?
What is an enumeration?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is string and its types?
What is comparable and comparator interface? List their differences