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 exception handling in java?
What do you mean by default constructor in java?
What is jee6?
Can a constructor be protected?
What is meant by main method?
What are the two ways to create a thread?
Can java list contain duplicates?
Which java version is latest?
Using callable statement how can you pass out parameters, explain with example?
Implementations of set interface?
What is the default access specifier for variables and methods of a class?
How do you write a scanner class in java?
Can we clone singleton class in java?
What are the advantages of java inner classes?
How are the elements of a gridbaglayout organized?