what is the purpose of method overriding in java where v r
completely re-defining a inherited method instead y can't v
create a new method and define.If the question is very silly
plz excuse me and do reply.Thank U!
Answer Posted / ershad md sk
Bcoz......wen we think in Object Oriented Lang ..has u ask
if we create a new method we hav to call the method each
time wen we invoke the Object & it is a performance ISSUE
it wil eat lot of memory & it is a COMPLEXITY
Issue ........if u override Using the superclass Handle we
can create any instance which is of any type(int Float
Long Short)it wil save space and reduce COMPLEXITY and
increase PERFORMANCE...
| Is This Answer Correct ? | 10 Yes | 17 No |
Post New Answer View All Answers
Difference between character constant and string constant in java ?
What is an interface in java? Explain
What is entry set in java?
What is difference between core java and java ee?
Is a boolean 1 bit?
What about abstract classes in java?
Does importing a package imports its sub-packages as well in java?
What is the importance of main method in Java?
Is ++ operator thread-safe in java?
Why can't we use static class instead of singleton?
What are classloaders?
Explain the available thread states in a high-level?
What are advantages and disadvantages of OOPs?
Can java list be null?
What happens if an exception is throws from an object's destructor?