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 the difference between declaration and definition in java?

515


Which is better singleton or static class?

502


Write a program in java to establish a connection between client and server?

503


Write a program to print count of empty strings in java 8?

534


what is function overloading in java?

696






Write a program based on Java script program.

641


Why isn’t there operator overloading?

589


What is application system?

501


How to sort elements in a parallel array in java?

503


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

1829


What is the base class of all exception classes?

580


What is data type in computer?

519


How can we create a synchronized collection from given collection?

577


What are java threads?

615


List the different types of classloaders in java.

501