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

What is the static method?

571


What are the differences between stringbuffer and stringbuilder?

541


Why is flag used in java?

551


What is the maximum size of array in java?

518


What is a finally block?

568






What is difference between synchronize and concurrent collection in java?

522


How to store image in arraylist in java?

512


how is final different from finally and finalize in java?

610


How many days will it take to learn java?

519


What is a variable analysis?

642


Can you sort a list in java?

531


What is the difference between an if statement and a switch statement?

650


Why static functions are used?

572


What is difference between next () and nextline () in java?

541


What is a java list?

587