The java language allows the definition of two or more methods with the same name within one class, unless the declarations of their parameters are different. In this case, the methods are called overloaded, and the process is called overloading methods. Overloading methods in java is one way to support polymorphism in java.