Java Method Overloading

Method Overloading

With method overloading, multiple methods can have the same name with different parameters:

Example

int myMethod(int x)
float myMethod(float x)
double myMethod(double x, double y)

Consider the following example, which has two methods that add numbers of different type: Continue reading Java Method Overloading