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 continuity of a function?

528


What is bifunction in java?

682


In how many ways we can do exception handling in java?

579


Explain an intermediate language?

513


What is difference in between java class and bean?

572






What is the difference between overriding and overloading in OOPS.

567


What is java objectoutputstream?

546


Which package is imported by default?

637


What do u mean by variable?

569


how we can make a read-only class in java?

545


What are the 3 types of control structures?

531


Why java strings are immutable in nature?

596


What is extension method in java?

565


Can a final variable be manipulated in java?

539


What is exception hierarchy in java?

593