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 an empty class? What functionality does it offer in Java?
How many types of methods are there?
How many bits are in a sentence?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What is udp in java?
How can you handle java exceptions?
What is the difference between integer parseint and integer valueof?
Why string is not thread safe?
What is variable argument in java?
What do you understand by an io stream?
How do you compare objects in java?
How are multiple inheritances done in Java?
Can static methods be inherited?
What does the “final” keyword mean in front of a variable? A method? A class?
What is a jagged array in java?