# Method Parameter

A named input declared by a method.

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

**Method Parameter** — A named input declared by a method.

```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 Parameter in C#](https://www.ask-codey.com/glossary/method-parameter-c-sharp)

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