Java / Inheritance
What is method hiding in Java?
Static methods cannot be overridden in Java, but if you declare the same static method in subclass then that would hide the method from its superclass. So, if you call that method from subclass then the one in the subclass will get invoked but if you call the same method from superclass then the one in superclass will be invoked. This is known as method hiding in Java.
More Related questions...