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

How many types of exception can occur in a java program?

524


What is Major and importance difference between for and foreach loop ?

565


Why is java called the platform independent programming language?

563


Can you extend main method in java?

607


What is n in java?

525






How can an exception be thrown manually by a programmer?

497


How can we make sure main() is the last thread to finish in java program?

652


what is enumset?

571


What is r * in math?

538


Which variables are stored in heap?

529


What methods are used in Servlet?Applet communication?

1652


Which is best ide for java?

509


What are the common uses of "this" keyword in java ?

559


Why can't we use static class instead of singleton?

491


How does multithreading take place on a computer with a single cpu?

528