-
Does every { in a Java program
have to have a matching }?
yes
-
What is a method?
a collection of statements with a name that performs a specific task
-
What are the two components of a method?
method header and method body
-
What do you call the code block containing the statements
that are executed when the method is run?
method body
-
What is contained inside the parentheses, ( ), on the first line of the
method definition?
a list of parameters
-
What do you call the statement that causes a method to run?
a method call
-
Does this statement always have to have parentheses, ( )?
yes
-
What do you call variables defined inside the statements of a method?
local variables
-
Can other parts of the program see these variables?
no
-
What do you call the values inside the ( ) when you run
a method?
arguments
-
What do you call the special variables inside a method that get
their value when the method is run?
parameters
-
Where do these special variables get their values?
from the arguments in the method call