method hiding in Java

When super class and sub class contains same method including parameters and if they are static. The method in the super class will be hidden by the one that is in the sub class. This mechanism is known as method hiding.
The following list summarizes the five rules for hiding a method:
* The method in the child class must have the same signature as the method in the parent class.
* The method in the child class must be at least as accessible or more accessible than the method in the parent class. Otherwise cannot compile.
* The method in the child class may not throw a checked exception that is new or broader than the class of any exception thrown in the parent class method. Otherwise cannot compile.
* If the method returns a value, it must be the same or a subclass of the method in the parent class, known as covariant return types. Otherwise cannot compile.
* The method defined in the child class must be marked as static if it is marked as static in the parent class (method hiding). Likewise, the method must not be marked as static in the child class if it is not marked as static in the parent class (method overriding).