____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term
____ 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.
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
Primitive types serve as the building blocks for more complex data types, called ____ types.
A(n) ____ dialog box asks a question and provides a text field in which the user can enter a response.
The ____ method executes first in an application, no matter where you physically place it within its class.
When a variable ceases to exist at the end of a method, programmers say the variable____.
c. goes out of scope
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.
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 class for storing and manipulating changeable data that is composed of multiple characters.
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.
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.
The ability to use inheritance in Java makes programs easier to write, ____, and more quickly understood.
d. less error prone
____ 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
Some text files are ____ files that contain facts and figures, such as a payroll file that contains employee numbers, names, and salaries.
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
An array of bytes can be wrapped, or encompassed, into a ByteBuffer using the ByteBuffer ____ method.
The Swing classes are part of a more general set of UI programming capabilities that are collectively called the ____.
b. Java Foundation Classes
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 ____.