What is Overriding and how can it be used?

Answer Posted / sajith

If class define method using same name,parameter,return
type,argument in its superclass then it is called overriding.
sub class should be override parentclass

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sort is best in java?

522


What are user defined exceptions?

585


What is difference between overloading and overriding in java?

525


Why are lists ordered in java?

541


What is the abstract class?

595






What is literal example?

560


What about main thread in java?

642


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

634


How do you add an element to a hashset in java?

490


Explain how to force the garbage collection in java.

529


What is the class in java?

555


Describe method overriding

580


What are three ways in which a thread can enter the waiting state in java programming?

680


What is the same as procedures?

529


What is string manipulation?

489