A program written in ____ is the most basic circuitry-level language.
b. machine language
____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term
____ refers to the hiding of data and methods within an object.
____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context.
In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist.
In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses, you type cd MyClasses and press Enter.
Java contains a class named ____ that allows you to produce dialog boxes.
Whenever a method requires multiple arguments, the arguments are always separated with ____.
If a compiler detects a violation of language rules, it refuses to translate the class to ____.
c. machine code
It is best to use the ____ available text editor when writing Java programs.
A data item is ____ when it cannot be changed while a program is running.
Primitive types serve as the building blocks for more complex data types, called ____ types.
____ refers to the order in which values are used with operators.
The characters ____ move the cursor to the next line when used within a println() statement.
A(n) ____ dialog box asks a question and provides a text field in which the user can enter a response.
A(n) ____ dialog box displays the options Yes, No, and Cancel.
The method ____ is the first line of a method.
The ____ method executes first in an application, no matter where you physically place it within its class.
Data items you use in a call to a method are called ____.
When a variable ceases to exist at the end of a method, programmers say the variable____.
c. goes out of scope
Methods used with object instantiations are called ____ methods.
A(n) ____ constructor is one that requires no arguments
A variable comes into existence, or ____, when you declare it.
b. comes into scope
A method can receive ____ arguments, even if it is defined as needing double arguments.
The compiler determines which version of a method to call by the method's ____.
____ variables are variables that are shared by every instantiation of a class.
The keyword ____ indicates that a field value is unalterable.
A(n) ____ consists of written steps in diagram form, as a series of shapes connected by arrows.
A(n) ____ statement is the decision structure you use when you need to take one or the other of two possible courses of action.
b. dual-alternative if
The compiler does not take indentation into account when compiling code, but consistent indentation can help readers understand a program's ____.
The ____ statement is useful when you need to test a single variable against a series of exact integer, character, or string values.
The ____ operator is always evaluated before the OR operator.
Which is an infinite loop?
b. loopCount = 1;
while(loopCount < 3);
A(n) ____ loop is a special loop that is used when a definite number of loop iterations is required.
The ____ loop checks the value of the loop control variable at the bottom of the loop after one repetition has occurred.
How many times will outputLabel be called?
for(customer = 1; customer <= 20; ++customer)
for(color = 1; color <= 3; ++color)
A(n) ____ is a variable that holds a memory address.
A(n) ____ is a class for storing and manipulating changeable data that is composed of multiple characters.
Strings and other objects that can't be changed are known as ____.
Besides Double and Integer, other wrapper classes such as Float and Long also provide ____ methods that convert Strings to the wrapper types.
To alter just one character in a StringBuilder, you can use the ____ method, which allows you to change a character at a specified position within a StringBuilder object.
A(n) ____ is an integer contained within square brackets that indicates one of an array's variables.
When you declare an array name, no computer memory address is assigned to it. Instead, the array variable name has the special value ____, or Unicode value '\u0000'.
Individual array elements are ____ by value when a copy of the value is made and used within the receiving method.
Primitive type variables are always passed by ____.
To declare a two-dimensional array in Java, you type two sets of ____ after the array type.
b. [ ]
The ArrayList class ____________________ method retrieves an item from a specified location in an ArrayList.
Regarding enumerations, the ____ method returns the name of the calling constant object.
Regarding enumerations, the ____ method returns an array of the enumerated constants.
The ability to use inheritance in Java makes programs easier to write, ____, and more quickly understood.
d. less error prone
The class used as a basis for inheritance is the ____ class.
____ polymorphism is the ability of one method name to work appropriately for different subclass objects of the same parent class.
You can use the ____ modifier with methods when you don't want the method to be overridden.
An application's ability to select the correct subclass method is known as ____.
b. dynamic method binding
The Object class equals() method returns a(n) ____ value indicating whether the objects are equal.
When a class both extends and implements, by convention the ____ clause is last in the class header.
A(n) ____ statement is one that sends an Exception out of a method so it can be handled elsewhere.
____ statements are program statements that can never execute under any circumstances.
Many developers believe that it is poor style for a method to throw more than ____ type(s) of exceptions.
c. three or four
The Java compiler does not require that you catch or specify ____ exceptions.
Some text files are ____ files that contain facts and figures, such as a payroll file that contains employee numbers, names, and salaries.
A(n) ____ is a group of characters that has some meaning.
A data file is used as a(n) ____ file when each record is stored in order based on the value in some field.
b. sequential access
You can create a writeable file by using the Path class ____ method.
An array of bytes can be wrapped, or encompassed, into a ByteBuffer using the ByteBuffer ____ method.
A(n) ____ field is the field in a record that makes the record unique from all others.
The Swing classes are part of a more general set of UI programming capabilities that are collectively called the ____.
b. Java Foundation Classes
What is the default layout manager for JFrame?
Within an implementation of the itemStateChanged() method, you can use the ____ method to determine which object generated the event and the getStateChange() method to determine whether the event was a selection or a deselection.
A ____ is a component that combines two features: a display area showing an option and a list box containing additional options.
Use the ____ layout manager when you need to add components that are displayed one at a time.
When components in a Swing UI require more display area than they have been allocated, you can use a ____ container to hold the components and allow the user to display the components using scrollbars.
If you want to see the x-coordinate of a user click, you would use the ____ method of the MouseEvent class.
Each JMenu can contain options, called JMenuItems, or can contain submenus that are ____.
The state of a JCheckBoxMenuItem or JRadioButtonMenuItem can be determined with the ____ method.