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

Java Types & Expressions Key Terms (Ch8)

AB
API (application-programming interface)a group of pre-defined classes that can be used to build a program. The Java API organizes Java's classes by package.
assignment operatorthe equals sign (=).
assignment statementstatement that assigns a value to a variable.
base-2a number system based on the two digits 0 and 1.
binary numbera number made up of some pattern of 0s and 1s.
bitthe smallest unit of memory, which can store a value of 0 or 1.
booleana type that stores a logical value of true (1) or false (0).
boolean operatoranother term for a logical operator.
bytea type that is made up of 8 bits.
chara type used to store character values.
character's indexthe position of a character in a String object.
class methodmessage sent to a class, not a particular instance of the class.
concatentation-assignment shorcutan operation represented by +=. This shortcut combines assignment and concatenation operations on String values.
constanta container whose value can be read, but not changed. A variable is converted into a constant by placing the keyword final before the type; e.g., final double PI = 3.14159.
decrementan operation that subtracts 1 from the value of a variable.
doubletype that uses 64 bits to represent real numbers. A double type has greater capacity than a float type.
double expressionan expression that produces a double value.
escape sequencea backslash followed by one or more additional characters.
expressiona series of operands, operators, objects, and/or messages that combine to produce a value.
fixed-point literalsa number with a fixed decimal point; e.g., -1.5 and 3.5.
floata type that uses 32 bits to represent a real number. A float type has less capacity than a double type.
floating-point literalsalternative representations of a single number using scientific notation. For example, 0.2998e9 and 29.98e7 are equivalent representations of one number. To account for the difference in the value of the exponent, the decimal "floats" two places.
garbage collectora Java component that reclaims de-referenced handles.
handleanother term for the name of a reference type.
incrementan operation that adds one to the value of a variable.
instance methoda message that must be sent to an instance of a class.
inttype that uses 32 bits to store integer values.
integersthe set of whole numbers = {?-3, -2, -1, 0, 1, 2, 3?}.
integer divisiondivision operation that produces a quotient and a remainder.
left associativityrule that orders from the left operations that include multiple operators from the same precedence level.
literala particular value of any type; e.g., 'a', 1.2, and 5 are literals, respectively, of type char, double, and int.
logical expressionan expression that evaluates to boolean true or false.
logical operatorone of three operators used to compare boolean expressions. The list of logical operators includes &&, ||, and !.
longa type that uses 64 bits to store integer values. A long type has greater capacity than an int type or short type.
Math classa set of mathematical functions used to build complex expressions.
nulla value that indicates no particular object is being referenced.
objectan instance of a class.
operator associativityrules determining the order in which operations of the same precedence are performed.
operator precedencerank of an operator according to its precedence level.
overloadeda term applied to a method name that has multiple meanings within a class.
precedence levelpriority assigned to an operator.
primitive typestypes that are used to store various kinds of numbers and can be used as ?building blocks? to build other types. These types include boolean, char, int, double, and others.
PrintStream classa class that includes methods for displaying a value on the screen.
quotienta whole number representing the number of times a dividend can be segmented into units equal to the divisor.
read-only itemsan item, such as a constant, whose value can be read but not changed at run-time.
real numbera number that includes values to the left and right of a decimal point.
reference typestypes that store references to objects, or instances of classes. Reference types are sometimes called class types because they are the names of classes. String, Scanner, and System are all examples of reference types.
remaindera portion of the divisor that is left over after an integer division operation.
relational operatorone of six operators used in a boolean expression that compares two operands. The list of relational operators includes !=, ==, <. <=, >, and >=.
right associativityrule that orders from the right operations that include multiple operators from the same precedence level.
Scanner classused to create objects that can read primitive type values from the keyboard.
scientific notationa number expressed in the form A.B x 10C where A, B, and C are integers. The equivalent representation in Java can be represented in Java as A.BeC.
shorta type that uses 16 bits to store integer values. A short type has less capacity than an int type or long type.
truth tablea table showing the value produced by a logical operator for each possible combination of operands.
typeinformation that specifies the kind of value that can be stored in a variable. Java uses primitive types to store the values of atomic variables and reference types to store references to objects.
Unicodea standard code that Java uses to represent characters. Each letter, digit, or symbol is represented by a different number using 16 bits. The Unicode standard represents 216 = 65,536 different characters.


Mountain Brook H. S.
Mountain Brook, AL

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