• 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/18

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;

18 Cards in this Set

  • Front
  • Back
Variable
Represents objects (words, letters, numbers, and so on)
Primitive
Variables that reserve memory
Examples: int (numbers), double (decimals), boolean (true/false)
Method
Actions/instructions. End in parentheses.
Object
Set of data combined with methods/actions, statuses, and behavior. Example: JButton fire = new JButton
Variable declaration
double pi = 3.14;
private JBUtton = flyButton;
myPetRock (declaration) = new (instantiation)
Constructor method
Like a method, but shares same name as class and cannot return a value
Method paremeters
Methods return data (unless it's void). Parameters are stuff in the method's parentheses.
Example: public drawNow(String s)
Assignment
Values assigned to variables
Example: int a = 5
^
Void
A method that does not have a return type
*Never used in constructors
Applets versus Applications
(All programs are either applications or applets.)
-Applets usually smaller
-Applets contain contain init() method
-Applets basically internet applications

-Applications contain main() method
-Have access to entire computer
Public
Visible to al
Private
Visible only to the class to which they belong
Scope
The accessibility of a variable.
-If variable declared at top of class, is accessible to all other methods. If declared in method, can only be used in that method (local method).
Literal
Values for variables that are written directly into a program. Represents the values of all primitives.
Example: boolean = true; int = 7
Object instantiation
myPetRock (declaration) = new (instatiation)
Return
Used to finish the execution of a method. Transfers back to the caller of the method.
Algorithm
Step-by-step procedures for calculations
Local variables
Declared in method and only visible/usable within said method.