asked in Inheritance by (58.6k points)

1 Answer

No,  you cannot override a private method in Java because the private method is not inherited by the subclass in Java, which is essential for overriding. In fact, a private method is not visible to anyone outside the class and, more importantly, a call to the private method is resolved at compile time by using Type information as opposed to runtime by using the actual object.
answered by (58.6k points)

Java Interview Questions and Answers 2018

>
...