The method name and parameter list must match exactly between the superclass and subclass.
In Java, for a method to be considered overridden, it must have the same signature as the method in the superclass. This means the method name and parameter types must match exactly. If the signature differs, the method in the subclass is treated as a new method rather than an override. For example, if a superclass has `void print(String msg)`, the subclass must also have `void print(String msg)` to override it.
Additional Notes
What does ‘same signature’ mean in method overriding?