Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Java

Method Overloading in Java

Define multiple methods with the same name but different parameter lists.

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; }

Leave a reply

Your email address will not be published. Required fields are marked *