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
What checkbox method allows you to tell if a checkbox is checked?
Can we override constructors in java?
Can you give few examples of final classes defined in java api?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is the file extension for java?
What is ellipsis in java?
What are nested classes in java?
Where pragma is used?
Can you override a final method?
Difference between string s= new string (); and string s = "abv";?
How do you remove an element from an arraylist in java?
How many decimal digits is 64 bit?
How java is similar to c?
How big is a 64 bit float?
Define canvas?