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
What is the difference between declaration and definition in java?
Which is better singleton or static class?
Write a program in java to establish a connection between client and server?
Write a program to print count of empty strings in java 8?
what is function overloading in java?
Write a program based on Java script program.
Why isn’t there operator overloading?
What is application system?
How to sort elements in a parallel array in java?
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?
What is the base class of all exception classes?
What is data type in computer?
How can we create a synchronized collection from given collection?
What are java threads?
List the different types of classloaders in java.