Method Overloading in Java — a practical guide to Java method overloading with clear examples you can reuse in real projects.
Java Tutorial Series (30/90). Prefer one article? Read the complete Java tutorial.
Short description
Overloading is resolved at compile time based on argument types/count.
Overloading
static int sum(int a, int b) { return a + b; }
static double sum(double a, double b) { return a + b; }