Java Programming 1 final exam review
two ampersands
AND operator
___ refers to the order in which values are used with operators.
Associativity
After a successful compile, you can run the class file on any computer that has a ___.
Java language interpreter
A(n) ___ causes a value to be sent from a called method back to the calling method.
Return statement
Which escape sequence causes the cursor to move to the beginning of the current line?
\r
You use the ___ operators to preform calculations with values in your programs.
arithmetic
When you execute an if..else statement, only one of the resulting actions takes place depending on the evaluation of the ___ following the if.
boolean expression
true or false
boolean values
You use the ____ data type to hold any single character.
char
___ variables are variables that are shared by every instantiation of a class
class
A variable comes into existence, or ___,when you declare it .
comes into scope
variable comes into existence
comes into scope
The ___ requires three expressions separated with a question mark and a colon
conditional operator
A for loop provides a convenient way to create a(n) ____ loop.
counter- controlled
locating and repairing all syntax errors is part of the process of ___
debugging
Just as you can block statements that depend on an if, you can also block statements that depend on a(n) ___.
else
a double equal sign
equality
An indefinite loop is a(n) ____ loop.
event-controlled
When calling this() from a constructor, it must be the ____ statement within the constructor.
first
A ___ consists of written steps in diagram form, as a series of shapes connected by arrows.
flowchart
When creating a for loop, which statement will correctly initialize more than one variable?
for (a=1, b=2)
Within parentheses are three sections separated by exactly two semi colons
for loop
___ parameters are variables in a method declaration that accept the values from the actual parameters.
formal
Allow you to assign intuitive names to areas of computer memory
high-level programming languages
Another name for a nonstatic member class is a(n) ___.
inner class
in java, you use variables of type ___ to store integers, or whole numbers.
int
A __ is a structure that allows repeated execution of a block of statements
loop
As long as methods do not depend on one another, ____ is a technique that can improve loop performance by combining two loops into one
loop fusion
Low level programming language
machine language
a program written in ___ is the most basic circuitry-level language
machine language
When using equals and not equals for comparisons with objects, you compare the objects' ___ actual values.
memory addresses
When they have the same name, variables within ___ of a class override the class's fields.
methods
rules for the order in which parts of a mathematical expression are evaluated
operator precedence
when your properly ___ a method, you can call it providing different argument lists, and the appropriate version of the method executes.
overload
___ involves using one term to indicate diverse meanings, or writing multiple methods with the same name but with different parameter lists.
overloading
using one term to indicate diverse meanings
overloading
___ describes the feature of language that allows the same words to be interpreted correctly in different situations based on context.
polymorphism
When you want to increase a variable's value by exactly 1, use the ____.
prefix increment operator
a ___ is an error not detected until the program asks the computer to do something wrong, or even illegal, while executing.
run-time error
in java, the reserved keyword ___ means that a method is accessible and usable even though no objects of the class exist.
static
are called class methods
static methods
in java, ___ is a built-in class that provides you with the means for storing and manipulating character strings.
string
The ___ statement is useful when you need to test a single variable against a series of exact integer, character, or string values.
switch
it is a convenience to be able to use one reasonable name for ___ that are functionally identical except for argument types.
tasks
It is important that the loop control ___ be altered within the body of the loop
variable
You can use the asterisk (*) as a ____, which indicates that it can be replaced by any set of characters.
wildcard symbol