# Method Overloading

Defining methods with the same name but different parameter lists.

## What is **Method Overloading** in Java?

**Method Overloading** — Defining methods with the same name but different parameter lists.

```java
class OrderCalculator {
    int total(int price, int quantity) {
        return price * quantity;
    }
}
```

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/apprentice)

Updated: September 27, 2026

## In other subjects

- [Method Overloading in C#](https://www.ask-codey.com/glossary/method-overloading-c-sharp)
- [Method Overloading in OOP](https://www.ask-codey.com/glossary/method-overloading-oop)

Source: https://www.ask-codey.com/glossary/method-overloading
