1/13
A set of vocabulary flashcards to help review key concepts related to methods in Java programming.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Method
A collection of statements grouped together to perform an operation.
Sum
The result of adding a series of numbers together.
Parameter
A variable defined in a method header that accepts values when the method is called.
Return Value Type
The data type of the value that a method returns.
Formal Parameter
Variables defined in the method header.
Actual Parameter
The actual value passed to the method when it is called.
Method Signature
The combination of the method name and the parameter list.
Pass by Value
A method of passing arguments to a function where the actual value is passed, not the reference.
Void Method
A method that does not return a value.
Overloading Methods
Defining multiple methods with the same name but different parameters.
Local Variable
A variable defined within a method that is only accessible within that method.
Scope of Local Variables
The part of the program where a variable can be referenced.
Method Abstraction
Treating the method body as a black box that hides the details of its implementation.
Benefits of Methods
Methods can be reused, provide information hiding, and reduce complexity.