Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
A parameter is a variable defined in a method declaration that receives input values when the method is called. It allows data to be passed into methods to perform actions or calculations.
Related terms
Argument: The actual value passed into a method when it is invoked. Arguments correspond to parameters and provide data for the method to work with.
The type of value that a method returns after performing its task. It specifies what kind of result can be expected when calling the method.
Method Overloading: Having multiple methods within the same class with different parameter lists (number, order, or type). This allows methods with similar functionality but different inputs.