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 Hostile Applets?
Write a program to print count of empty strings in java 8?
Which browsers work with java?
Write the algorithm to check the number non-leaf nodes in a tree.
What’s the difference between callable and runnable?
What is Garbage Collection in Java
How do you find the absolute value?
How to display all the prime numbers between 1 and 100
What is complexity in java?
What is the use of 'super' keyword inside a constructor?
What is a priority queue java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What is variable argument in java?
Explain numeric promotion?
What is the importance of finally block in exception handling?