Overloading Methods and Constructors | Java
What is overloading?
Overloading is the term used when more than one method exists with the same name. It does not matter if the methods exist in the same class, or if one or both methods exist in the parent or child classes.
The compiler differentiates between the two methods using the methods parameters, specifically the order and the data types of the parameters. Therefore you could have two methods with the same name and two parameters as long as the data types were different or the same data types but in a different order.