Answer Posted / sumit
One can prevent method overriding by marking the method final. if you make a method static and reuse it in the subclass it will hide the the super class method. This is called method hiding rather than overriding.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Mention some interfaces implemented by linked list in java.
Can we create a constructor in abstract class?
Which variable is the independent variable?
Where are global variables stored?
What is a prefix function.write down a code to compute prefix function.
Explain the difference between jdk, jre, and jvm?
Are functions objects in java?
How to run a JAR file through command prompt?
Can we overload destructor in java?
Can we have multiple classes in a single file?
What is contract between hashcode and equal method?
Can we cast any other type to boolean type with type casting?
Give any two differences between C++ and java.
Where is const variable stored?
What is the ==?