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 / sadikhasan palsaniya

we can change default behavior of super class method by
overriding that method into the subclass.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When arithmeticexception is thrown?

565


What is multi level inheritance in java?

541


What methodology can be employed to locate substrings inside a string?

511


Can a function return a function?

534


Explain the importance of thread scheduler in java?

586






What is the difference between the paint() and repaint() methods in java programming?

608


What is the collection interface?

575


What is treemap in java?

536


How will you get the platform dependent values like line separator, path separator, etc., ?

571


Is boolean a wrapper class in java?

589


What is final method?

570


Do we have pointers in java?

520


Can arraylist contain null values?

555


What are the escape sequences in java?

554


What is data type modifier?

518