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
What are the advantages and disadvantages of object cloning?
What are the basics of core java?
Why collection is called framework in java?
What does t in java mean?
What is boolean logic?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
What is the difference between jfc & wfc?
Explain access specifiers?
Is it possible to compare various strings with the help of == operator?
How does sublist works in java?
Can we use a switch statement with strings?
What are advantages and disadvantages of OOPs?
What is a parameter example?
How do you remove all elements from an arraylist in java?
What is the use of isempty in java?