What is Overriding and how can it be used?

Answer Posted / vikneswarank

the class and it sub contain one method with same name and
same signature and same return type also
sub class in method will override in super class.

in case of overridding during run time jvm knows which
method it will call.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a classloader in java?

530


Is arraylist sorted in java?

521


What is object of class in java?

588


How do you use find and replace?

501


What's the purpose of using break in each case of switch statement?

498






What are thread local variables?

542


What is casting in java programming?

572


What is the purpose of using javap?

606


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

585


What causes memory leak in java?

471


What is protected in java?

517


How to use Media tracker Class.

636


What is the generic function?

518


What is the requirement of thread in java?

610


What is the basic concept of java?

526