IS method overriding is Duplication of Methods?
Answer Posted / amol
No. In method overriding the behaviour of overrided method
is different. The subclass override only those methods,
which has different behaviour than superclass else alawys
use all the methods of superclass, which is better than
making a lot duplication by defining another class for same
methods of superclass.
Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
Why main function is static?
Using callable statement how can you pass out parameters, explain with example?
What is a generic data type?
What is a singleton puppy?
What is google full form?
How is string stored in java?
What are latest features introduced with java 8?
Explain some best practices you would apply while using collection in java?
What are the types of inner classes (non-static nested class) used in java?
What is use of inner class in java?
How do you identify independent and dependent variables?
What is replaceall in java?
Is void a data type?
What is the memory leak in java?
What are the 8 data types in java?