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 default exception handling in java?
What is a consumer in java?
What is the final class modifier?
What is an abstract class and what is it’s purpose?
How to create a base64 decoder in java8?
how is final different from finally and finalize in java?
What are constants?
Where pragma is used?
What is a stack class in java ?
How many ways can you break a singleton class in java?
what is singleton in java?
What do you mean by boolean?
What is finalize()?
Can we use different return types for methods when overridden?
What are java packages?