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 data structures are used to perform recursion?
How do you sing an Applet ?
What if static is removed from main method?
Does java linked list allow duplicates?
Program to Find the second largest element in an array.
What are the rules for variable declaration?
How is a structure different from array ?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
Why parameters should be passed by reference?
How do I find and replace in word?
Is java pass by value or pass by reference?
Is heap stored in ram?
What is fail first in java?
Can a string be null?
What happens when you add a double value to a string?