An _____ is the name of a variable, method, or class.
identifier
You can change the value of a variable by using the ______ operator.
assignment
Complete the following code, which sets bIGRiver to the String object "MISSISSIPPI".
String river = "Mississippi"
String bigRiver = _______
river.toUpperCase();
A method name is ______ if a class has more than one method with the same name (but different parmeter types)
overloaded
The ____ operator, folowed by a class name and parameters, is used to construct new objects.
new
Complete the following code, which replaces all occurences of "issipp" in "Mississippi" with "our".
String river = "Mississippi";
river.___________
replace("issip","our");
A _____ is a storage location in the computer's memory that has a type, a name, and cotnents.
variable
According to convention, variable and method names should begin with a ______ letter.
lower case
A _____ is a collection of classes with a related purpose.
package
The ____ of a class specifies what you can do with its objects.
??? we,,, just don't know.... study hard.... #TheStruggle
_______ are entities in your program that you manipulate by calling methods.
objects
The _____ paramter of a method is the object on which the method is invoked.
implicit
When an instance field is declared within the _______ access specifier, this means that the field can only be accessed by the methods of the same class and not by any other method.
private
The _____ statement statement is used to specify the value that a method returns to its caller.
return
The Java virtual machine contains an agent called a _____________________ that periodically reclaims objects when they are no longer used.
garbage colector
The name of the constructor is always the same of the name of the _____
class
The public constructors and methods of a class form the public ____ of the class.
interface
In the statement below, amount is referred to as the _____parameter:
public void deposit(double amount)
explicit
Documentation _____ can be used to describe the classes and publuic methods of programs.
Comments
Each object of a class has its own set of _______
instance fields
The black boxes from which a program is manufactured are called ______
objects
Numerical ___ are values that do not change and that have a special significance for a computation
constants
The ____ operator is called the assignment operator
0
A string lenthof zero is called the empty string and is written as_____
The _______ method is used to extract part of a string
substring
String positions are counted with ____
0
The ___ character is used as an escape character in Java.
\
The value of x after following sequence of statements is ____: x--; x++;
x
Java uses the _____ encoding chem to demote international characters
Interface
Math.____ returns the larger of x and y.
max
Complete the following code, which reads the next floating-point number.
Scanner in = new Scanner(System.in);
System.out.print("Enter price: ")
double price = ______;
int.next.Double
In order to display drawing in a frame, you should define a class that extends the ________ class.
component
When a window is shown for the first time, the _________ method is called automatically.
paint component
Use a ____ to recover the graphics 2D object from the Graphics parameter of the paintComponent method.
cast
Complete the following statement, which constructs an ellipse:
Ellipse2D.Double ellipse = new ______ (x, y, width, height);
Ellipse2D.double
The ______ method of the Graphics2D class can be used to draw a string anywhere in a window.
drawString
The ______ class extends the Graphics class in Java.
Graphics 2D
Place drawing components inside the _____ method. That method is called whenever the component needs to be repainted.
paintComponent
In Java, colors are specified by defining their _____, ____, and _____ values.
Red, blue, and green
____ is the nickname for the graphical user interface library in Java.
Swing
To draw a line in ava, you should use an object of the ______ class.
Line20Double
To run an applet, you need a _______file with the applet tag.
HTML
You view applets with the _____ or a Java enabled browser.
applet viewer
To compare the contents of objects, you must use the ______ methods.
equals
_____ _are combinations of keystrokes that allow you to carry out tasks that are more commonly carried out by using the mouse.
shortcuts
The _____ type has two values: true and false.
boolean
______ law shows how to simplify expressions in which the not operator is applied to terms joined by the && or || operators.
DeMorgan's
You should use the _____ operator to test whether an object reference is a null reference.
0
The _____ reference indicates that a strig variable refers to no string at all.
A conditional statement such as if(x>=0) y = z; is called a ____ statement
compound
In Java, the ambiguous else is also called the _____ else
dangling
An _____ type has a finite set of values.
enumerated
While traversing the characters in a string, the bounds are ______
asymmetric
One common method for indicating the end of a data set is a _______, a value that is not part of the data.
sentinel value
A loop that runs forever and can be stopped only by killing the program or restarting the computer is called an __________
infinite loop
A loop which requires you to go halfway into it before knowing whether or not to terminate is often called a ____________
loop and a half
In Java, unsophisticated programmers falsely believe that all for loops have ______ bounds
infinite
In the _____ loop header, you can declare multiple variables, as long as they are of the same type and you can include multiple update expressions, separated by commas.
for
The ___ loop is executed at least once.
do
An _____ is the name of a variable, method, or class.
identifier
You can change the value of a variable by using the ______ operator.
assignment
Complete the following code, which sets bIGRiver to the String object "MISSISSIPPI".
String river = "Mississippi"
String bigRiver = _______
river.toUpperCase();
A method name is ______ if a class has more than one method with the same name (but different parmeter types)
overloaded
The ____ operator, folowed by a class name and parameters, is used to construct new objects.
new
Complete the following code, which replaces all occurences of "issipp" in "Mississippi" with "our".
String river = "Mississippi";
river.___________
replace("issip","our");
A _____ is a storage location in the computer's memory that has a type, a name, and cotnents.
variable
According to convention, variable and method names should begin with a ______ letter.
lower case
A _____ is a collection of classes with a related purpose.
package
The ____ of a class specifies what you can do with its objects.
??? we,,, just don't know.... study hard.... #TheStruggle
_______ are entities in your program that you manipulate by calling methods.
objects
The _____ paramter of a method is the object on which the method is invoked.
implicit
When an instance field is declared within the _______ access specifier, this means that the field can only be accessed by the methods of the same class and not by any other method.
private
The _____ statement statement is used to specify the value that a method returns to its caller.
return
The Java virtual machine contains an agent called a _____________________ that periodically reclaims objects when they are no longer used.
garbage colector
The name of the constructor is always the same of the name of the _____
class
The public constructors and methods of a class form the public ____ of the class.
interface
In the statement below, amount is referred to as the _____parameter:
public void deposit(double amount)
explicit
Documentation _____ can be used to describe the classes and publuic methods of programs.
Comments
Each object of a class has its own set of _______
instance fields
The black boxes from which a program is manufactured are called ______
objects
Numerical ___ are values that do not change and that have a special significance for a computation
constants
The ____ operator is called the assignment operator
0
A string lenthof zero is called the empty string and is written as_____
The _______ method is used to extract part of a string
substring
String positions are counted with ____
0
The ___ character is used as an escape character in Java.
\
The value of x after following sequence of statements is ____: x--; x++;
x
Java uses the _____ encoding chem to demote international characters
Interface
Math.____ returns the larger of x and y.
max
Complete the following code, which reads the next floating-point number.
Scanner in = new Scanner(System.in);
System.out.print("Enter price: ")
double price = ______;
int.next.Double
In order to display drawing in a frame, you should define a class that extends the ________ class.
component
When a window is shown for the first time, the _________ method is called automatically.
paint component
Use a ____ to recover the graphics 2D object from the Graphics parameter of the paintComponent method.
cast
Complete the following statement, which constructs an ellipse:
Ellipse2D.Double ellipse = new ______ (x, y, width, height);
Ellipse2D.double
The ______ method of the Graphics2D class can be used to draw a string anywhere in a window.
drawString
The ______ class extends the Graphics class in Java.
Graphics 2D
Place drawing components inside the _____ method. That method is called whenever the component needs to be repainted.
paintComponent
In Java, colors are specified by defining their _____, ____, and _____ values.
Red, blue, and green
____ is the nickname for the graphical user interface library in Java.
Swing
To draw a line in ava, you should use an object of the ______ class.
Line20Double
To run an applet, you need a _______file with the applet tag.
HTML
You view applets with the _____ or a Java enabled browser.
applet viewer
To compare the contents of objects, you must use the ______ methods.
equals
_____ _are combinations of keystrokes that allow you to carry out tasks that are more commonly carried out by using the mouse.
shortcuts
The _____ type has two values: true and false.
boolean
______ law shows how to simplify expressions in which the not operator is applied to terms joined by the && or || operators.
DeMorgan's
You should use the _____ operator to test whether an object reference is a null reference.
0
The _____ reference indicates that a strig variable refers to no string at all.
A conditional statement such as if(x>=0) y = z; is called a ____ statement
compound
In Java, the ambiguous else is also called the _____ else
dangling
An _____ type has a finite set of values.
enumerated
While traversing the characters in a string, the bounds are ______
asymmetric
One common method for indicating the end of a data set is a _______, a value that is not part of the data.
sentinel value
A loop that runs forever and can be stopped only by killing the program or restarting the computer is called an __________
infinite loop
A loop which requires you to go halfway into it before knowing whether or not to terminate is often called a ____________
loop and a half
In Java, unsophisticated programmers falsely believe that all for loops have ______ bounds
infinite
In the _____ loop header, you can declare multiple variables, as long as they are of the same type and you can include multiple update expressions, separated by commas.
for
The ___ loop is executed at least once.
do