• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/9

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

9 Cards in this Set

  • Front
  • Back
Define static method.
Static method (aka a class method) do not apply to an object, and do not require any periods to appear before their name when they are called (in the class they are a part of).
Define method calls.
The place in your program where you execute a method by name. eg. System.out.println("hello");
Define method definition.
Method definitions consist of two parts, the method declaration and the body of the method.
Syntax: method definition.
public static void methodName()
{
statement1;
statement2;
}
What is the effect of the order of method definitions?
There is none. Methods can be defined and called in any order. Traditionally methods are declared roughly in the order in which they are first called by the program.
Define parameters.
Values that are accepted by methods.
Syntax: parameters in a method header.
methodName(typename parameterName)
What's the difference between arguments and parameters?
Arguments are given to a method, parameters are received by a method.
What do you have to keep in mind for methods with multiple parameters?
The order of the parameters in the method definition match the order of the arguments passed in.

Multiple parameter definitions are separated by commas.

Each parameter definition needs to be preceded by its type.

eg. (dataType parameterName1, dataType parameterName2)