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 consumer in java?
What is finally and finalize in java?
Can a class be final?
What is downcasting?
Why is java called the platform independent programming language?
What is hotjava?
What is thread pool in java with example?
For class CFoo { }; what default methods will the compiler generate for you>?
What are predicates in java 8?
Where is the find and replace?
Is main a function?
What do you understand by java virtual machine?
Why we use methods in java?
What is the difference between import java.util.date and java .util?
Is the milky way in a void?