Title: Key Concept - Method Parameter
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

- A method declaration includes a parameter list that specifies the inputs, if any, to the method.
- Each item in the parameter list is called a parameter and is composed of a data type and a name.

● The data type of a parameter may be:

- A primitive data type
- A reference data type

● When the method is called, there must be one argument specified for each parameter. The order and data types of the arguments must match the order and data types of the parameters.

● Parameters are passed by value.

- If the parameter is a primitive data type, the value of arguments outside the method are not changed.
- If the parameter is a reference data type, the value of arguments outside the method are changed.

For more information about method paremeter:

- Click this link to view Oracles's documentation: Passing Information to a Method or a Constructor.
- Level 1 Study Materials: Unit 5