Java Games: Flashcards, matching, concentration, and word search.

Java Chapter 2

AB
arithmetic operatorsoperators that are used to perform calculations with values
assignmentthe act of providing a value for a variable
assignment operatorthe equal sign ( = ); any value to the right of the equal sign is assigned to the variable on the left of the equal sign
associativitythe order in which operands are used with operators
binary operatorsoperators that require two operands
blank finala final variable that has not yet been assigned a value
block of codethe code contained between a set of curly braces
booleana variable that can hold only one of two values: true or false
bytethe data type used to hold very small integers, from –128 to 127
camel casinga style in which an identifier begins with a lowercase letter and subsequent words within the identifier are capitalized
cast operatoran operator that performs an explicit type conversion; it is created by placing the desired result type in parentheses before the expression to be converted
chara data type that is used to hold any single character
comparison operatoran operator that compares two items; an expression that contains a relational operator has a Boolean value; also known as a relational operator
concatenatedvalues that are attached end to end
confirm dialog boxa 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
constantdescribes values that cannot be changed during the execution of an application
consumeto retrieve and discard an entry without using it
data typedescribes 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
doublea data type that can hold a floating-point value of up to 14 or 15 significant digits of accuracy
double precision floating point numbera number stored in a double
echoing the inputrepeating the user’s entry as output so the user can visually confirm the entry’s accuracy
escape sequencea sequence that begins with a backslash followed by a character; the pair represents a single character
explicit conversionthe data type transformation caused using a cast operator
finala keyword that precedes named constant declarations
floata data type that can hold a floating-point value of up to six or seven significant digits of accuracy
floating pointa number that contains decimal positions
floating point divisionthe operation in which two values are divided and either or both are floating-point values
garbage valuethe unknown value stored in an uninitialized variable
implicit conversionthe automatic transformation of one data type to another; also known as a promotion
initializationan assignment made when you declare a variable
input dialog boxa box that asks a question and provides a text field in which the user can enter a response
intthe data type used to declare variables and constants that store integers from -2,147,483,648 to 2,147,483,647
integera whole number without decimal places
integer divisionthe operation in which two values are divided and both are integers; the result contains no fractional part
keyboard buffera small area of memory where keystrokes are stored before they are retrieved into a program; also known as the type-ahead buffer
literal constanta value that is taken literally at each use
longthe data type used to hold very large integers, from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
lvaluean expression that can appear only on the left side of an assignment statement
magic numbera value that does not have immediate, intuitive meaning or a number that cannot be explained without additional knowledge; unnamed constants are magic numbers
modulus operatorsometimes 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 constanta named memory location whose value cannot change after it is assigned; also known as a symbolic constant
null Stringan empty String created by typing a set of quotes with nothing between them
numeric constanta number whose value is taken literally at each use
operanda value used in an arithmetic statement
operator precedencethe rules for the order in which parts of a mathematical expression are evaluated
parseto break into component parts
primitive typea simple data type. Java’s primitive types are byte, short, int, long, float, double, char, and boolean
promotionthe automatic transformation of one data type to another; also known as an implicit conversion
prompta message that requests and describes user input
reference typescomplex data types that are constructed from primitive types
relational operatoran operator that compares two items; an expression that contains a relational operator has a Boolean value; also known as a comparison operator
remainder operatorthe 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
rvaluean expression that can appear only on the right side of an assignment statement
scientific notationa 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
scopethe area in which a data item is visible to a program and in which you can refer to it using its simple identifier
shortthe data type used to hold small integers, from –32,768 to 32,767
showInputDialog() methodthe method that creates an input dialog box
significant digitsrefers to the mathematical accuracy of a value
single-precision floating point numbera number stored in a float
standard arithmetic operatorsoperators used to perfoem calculations with values
standard input devicenormally, the standard input devide is the keyboard
Stringa built-in Java class that provides you with the means for storing and manipulating character strings
strongly typed languagea language in which all variables must be declared before they can be used
symbolic constanta named memory location whose value cannot change after it is assigned; also known as a named constant
tokena unit of data separated with whitespace
type castingforces a value of one data type to be used as a value of another type
type conversionthe process of converting one data type to another
type ahead buffera small area of memory where keystrokes are stored before they are retrieved into a program; also known as the keyboard buffer
type wrapper classesclasses that include methods that can process primitive type values; type-wrapper classes are contained in the java.lang package
unary cast operatora more complete name for the cast operator that performs explicit conversions
unary operatoran operator that uses only one operand
unifying typea single data type to which all operands in an expression are converted
uninitialized valuea value that has not been assigned
unnamed constanta constant that has no identifier associated with it
variablea named memory location that you can use to store a value
variable declarationa statement that reserves a named memory location


Director of Computer Science
Effingham College & Career Academy
Rincon, GA

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities