What happens if we override private method?
Answer / Rakesh Kumar
Private methods are not inheritable, so they cannot be overridden in subclasses. If a superclass has a private method and a subclass tries to override it with the same name, the subclass's version will not be considered during runtime.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why there is no call by reference in java?
Can I override protected method in java?
What do you understand by the term string pool?
Define a java class.
What is super?
Can final class have constructor?
what is filters and its use?
Will set allow duplicates in java?
How will you compute size of a structure?
Difference between object instantiation and construction ?
What are the 6 boolean operators?
When you Click a Button, What event will be fired?