A | B |
arithmetic operators | operators that are used to perform calculations with values |
assignment | the act of providing a value for a variable |
assignment operator | the equal sign ( = ); any value to the right of the equal sign is assigned to the variable on the left of the equal sign |
associativity | the order in which operands are used with operators |
binary operators | operators that require two operands |
blank final | a final variable that has not yet been assigned a value |
block of code | the code contained between a set of curly braces |
boolean | a variable that can hold only one of two values: true or false |
byte | the data type used to hold very small integers, from –128 to 127 |
camel casing | a style in which an identifier begins with a lowercase letter and subsequent words within the identifier are capitalized |
cast operator | an operator that performs an explicit type conversion; it is created by placing the desired result type in parentheses before the expression to be converted |
char | a data type that is used to hold any single character |
comparison operator | an operator that compares two items; an expression that contains a relational operator has a Boolean value; also known as a relational operator |
concatenated | values that are attached end to end |
confirm dialog box | a dialog box that displays the options Yes, No, and Cancel; you can create a confirm dialog box using the showConfirmDialog() method in the JOptionPane class |
constant | describes values that cannot be changed during the execution of an application |
consume | to retrieve and discard an entry without using it |
data type | describes the type of data that can be stored there, how much memory the item occupies, and what types of operations can be performed on the data |
double | a data type that can hold a floating-point value of up to 14 or 15 significant digits of accuracy |
double precision floating point number | a number stored in a double |
echoing the input | repeating the user’s entry as output so the user can visually confirm the entry’s accuracy |
escape sequence | a sequence that begins with a backslash followed by a character; the pair represents a single character |
explicit conversion | the data type transformation caused using a cast operator |
final | a keyword that precedes named constant declarations |
float | a data type that can hold a floating-point value of up to six or seven significant digits of accuracy |
floating point | a number that contains decimal positions |
floating point division | the operation in which two values are divided and either or both are floating-point values |
garbage value | the unknown value stored in an uninitialized variable |
implicit conversion | the automatic transformation of one data type to another; also known as a promotion |
initialization | an assignment made when you declare a variable |
input dialog box | a box that asks a question and provides a text field in which the user can enter a response |
int | the data type used to declare variables and constants that store integers from -2,147,483,648 to 2,147,483,647 |
integer | a whole number without decimal places |
integer division | the operation in which two values are divided and both are integers; the result contains no fractional part |
keyboard buffer | a small area of memory where keystrokes are stored before they are retrieved into a program; also known as the type-ahead buffer |
literal constant | a value that is taken literally at each use |
long | the data type used to hold very large integers, from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
lvalue | an expression that can appear only on the left side of an assignment statement |
magic number | a value that does not have immediate, intuitive meaning or a number that cannot be explained without additional knowledge; unnamed constants are magic numbers |
modulus operator | sometimes abbreviated as mod; when it is used with two integers, the result is an integer with the value of the remainder after division takes place; also known as the remainder operator |
named constant | a named memory location whose value cannot change after it is assigned; also known as a symbolic constant |
null String | an empty String created by typing a set of quotes with nothing between them |
numeric constant | a number whose value is taken literally at each use |
operand | a value used in an arithmetic statement |
operator precedence | the rules for the order in which parts of a mathematical expression are evaluated |
parse | to break into component parts |
primitive type | a simple data type. Java’s primitive types are byte, short, int, long, float, double, char, and boolean |
promotion | the automatic transformation of one data type to another; also known as an implicit conversion |
prompt | a message that requests and describes user input |
reference types | complex data types that are constructed from primitive types |
relational operator | an operator that compares two items; an expression that contains a relational operator has a Boolean value; also known as a comparison operator |
remainder operator | the percent sign (%); when it is used with two integers, the result is an integer with the value of the remainder after division takes place; also known as the modulus operator |
rvalue | an expression that can appear only on the right side of an assignment statement |
scientific notation | a display format that more conveniently expresses large or small numeric values; a multidigit number is converted to a single-digit number and multiplied by 10 to a power |
scope | the area in which a data item is visible to a program and in which you can refer to it using its simple identifier |
short | the data type used to hold small integers, from –32,768 to 32,767 |
showInputDialog() method | the method that creates an input dialog box |
significant digits | refers to the mathematical accuracy of a value |
single-precision floating point number | a number stored in a float |
standard arithmetic operators | operators used to perfoem calculations with values |
standard input device | normally, the standard input devide is the keyboard |
String | a built-in Java class that provides you with the means for storing and manipulating character strings |
strongly typed language | a language in which all variables must be declared before they can be used |
symbolic constant | a named memory location whose value cannot change after it is assigned; also known as a named constant |
token | a unit of data separated with whitespace |
type casting | forces a value of one data type to be used as a value of another type |
type conversion | the process of converting one data type to another |
type ahead buffer | a small area of memory where keystrokes are stored before they are retrieved into a program; also known as the keyboard buffer |
type wrapper classes | classes that include methods that can process primitive type values; type-wrapper classes are contained in the java.lang package |
unary cast operator | a more complete name for the cast operator that performs explicit conversions |
unary operator | an operator that uses only one operand |
unifying type | a single data type to which all operands in an expression are converted |
uninitialized value | a value that has not been assigned |
unnamed constant | a constant that has no identifier associated with it |
variable | a named memory location that you can use to store a value |
variable declaration | a statement that reserves a named memory location |