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;
35 Cards in this Set
- Front
- Back
_____ are the key to understanding object-oriented technology.
|
Objects
|
|
Objects all have _____ and _____.
|
state
behavior |
|
An object stores its state in _____.
|
fields
|
|
A field is similar to a _____.
|
variable
|
|
Variables in Java are often referred to as _____.
|
fields
|
|
An object exposes its behavior through _____.
|
methods
|
|
Methods are called _____ in some programming languages.
|
functions
|
|
Functions are usually referred to as _____ in Java.
|
methods
|
|
Methods
(______) |
behavior
|
|
Fields
(______) |
state
|
|
The primary mechanism for object to object communication.
|
methods
|
|
hiding internal state and requiring all interaction to be performed through methods
|
data encapsulation
|
|
the blueprint from which individual objects are created
|
class
|
|
Identify:
void changeCadence(int newValue) { cadence = newValue; } |
method
|
|
Structurally, methods are placed...
|
within a class.
|
|
Identify:
int cadence = 0 |
field
|
|
Identify:
class Bicycle { void changeCadence(int newValue) { cadence = newValue; } } |
Class
(method embedded) |
|
Identify
class name { . . . } |
class
|
|
The keyword _____ begins the class definition.
|
class
|
|
The keyword class begins the _____.
|
class definition
|
|
What are these symbols called? { }
|
curly braces
(braces) |
|
What is this called?
{ |
opening curly brace
(opening brace) |
|
What is this called?
} |
closing curly brace
(closing brace) |
|
In the Java programming language, every application must contain a _____method.
|
main
|
|
Identify:
public static void main(String[] args) |
main method
|
|
public static void main(String[] args)
In this method, "public" and "static" are _____. |
modifiers
|
|
public static void main(String[] args)
In this method, "args" is the _____. |
argument name
|
|
public static void main(String[] args)
In this method, "String[]" is the _____. |
array
|
|
In Java, All method definitions are defined in the body of the _____.
|
class
|
|
What are these symbols called?
[ ] |
brackets
|
|
What are these symbols called?
( ) |
parentheses
|
|
What is this symbol called?
( |
opening parenthesis
|
|
What is this symbol called?
) |
closing parenthesis
|
|
What is this symbol called?
[ |
opening bracket
|
|
What is this symbol called?
] |
closing bracket
|