A class having two or more methods with the same name but with different arguments then we say that those
methods are overloaded. By using overloading static polymorphism or static binding can be achieved in Java.
Static polymorphism is achieved in Java using method overloading. Method overloading is used when we want the methods to perform similar tasks but with different inputs or values.
When an overloaded method is invoked java first checks the method name, the number of arguments, and the type of arguments; based on this compiler executes this method. The compiler decides which method to call at compile time.