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 is locale in java?
Can I import same package/class twice?
What is meant by data hiding in java?
What is meant by overloading?
What is data type example?
Can you give few examples of final classes defined in java api?
What are the main concepts of oops in java?
What is treeset in java?
What is the output of the below java program?
What are different types of references?
Explain different types of thread priorities ?
Variables used in a switch statement can be used with which datatypes?
What is the use of System class?
What does this mean java?
Explain what is encapsulation?