When using overriding in Java, If we want the same method with different behavior in superclass and subclass then we go for overriding.
If we have methods with the same signature (same name, same signature, same return type) in the superclass and subclass then we say the subclass method is overridden by the superclass.
When we call the overridden method with the subclass reference subclass method is called hiding the superclass method.