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
Can java hashmap have duplicate keys?
When does an object becomes eligible for garbage collection in java?
What is the preferred size of a component in java programming?
Can I use % with real numbers?
what is the purpose of "virtual"?
What does string mean in java?
What is independent and dependent variables in research?
What about main() method in java ?
How do you compare two objects?
What is an abstract method in java programming?
What is memory leak and how does java handle it?
What is a copy constructor in java?
Explain the selection sort algorithm and state its time complexity?
How to instantiate member inner class?
What class allows you to read objects directly from a stream in java programming?