Level 115 Level 117
Level 116

Variables & Constants


59 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
abstract data type
A class. A data type that can store data and methods.
ArithmeticException exception
An exception thrown when division by 0 occurs.
assignment statement
A statement that gives the variable or constant on the left of an assignment operator the value of the expression on the right side of the assignment operator.
case sensitive
An uppercase letter is different from the same letter in lowercase.
concatenate
To join two or more strings to form one larger string.
constant
a memory location whose content cannot change during program execution
Data type
Describes type of attribute. Data types are decided by the software or DBMS.
declaration
A statement that creates a variable or constant.
equal sign (=)
An assignment operator that indicates the variable or constant on the left is to receive the value of the expression on the right.
floating point
method to store real numbers in two parts: mantissa and exponent
identifier
A name for a variable or constant. An __________ must begin with a letter and can include any number of letters, numbers, and some special characters.
initialize
To assign a variable a value in a declaration statement.
InputMismatchException exception
An exception thrown when user input is not as expected.
input stream
The sequence of characters received from an input device.
instantiation
To create a new object.
integer division
Division that truncates the decimal portion.
keyword
A word that has special meaning to the Java compiler and therefore cannot be used as a variable or constant identifier.
literal
An actual value.
logic error
An error caused by a statement that is syntactically correct, but produces unexpected or undesired results. Also called a semantic error.
modulus division
Division that returns the remainder.
numeric expression
At least one operand and possibly one or more operators that evaluate to a single value.
object
A database item that contains data, as well as the actions that read or process the data.
operator precedence
The level assigned to an operator so that a specific order of operations is maintained.
primitive data type
A data type that can store only a single piece of data. Also called built-in data types.
prompt
A string that informs the user of the kind of data expected to be typed.
run-time error
An error affecting program execution. Also called an exception.
syntax error
An error caused by a statement that violates the rules of Java.
truncate
Removing the decimal portion of a number when casing a double to an int.
type casting.
Converting a number from one type to a different type.
variable
a letter used to represent a number
+
Operator used for concatenating strings. The arithmetic addition operator.
-
The arithmetic subtraction operator.
/
A command switch is expressed by using which character?
%
The arithmetic modulus division operator.
=
An assignment operator that gives the variable on the left the value on the right.
+=
An assignment operator that adds the value on the right to the variable on the left and then assigns that value to the variable on the left.
-+
An assignment operator that subtracts the value on the right from the variable on the left and then assigns the value to the variable on the left.
/=
An assignment operator that divides the value of the variable on the left by the value on the right and then assigns that value to the variable on the left.
%=
An assignment operator that divides the value of the variable on the left by the value on the right and then assigns the remainder of that division to the variable on the left.
Boolean
A data type that only stores one o two values
char
A data type that represents a single character.
double
A data type that represents positive or negative floating point numbers.
final
Keyword used to declare an identifier a constant.
import
Bring in graphics into a slide
in
The java.lang.System member that represents the standard input stream.
int
A data type that represents positive or negative integers.
java.lang
The most fundamental Java package. It contains classes that define the Java language.
java.text
A Java package with the NumberFormat class for formatting numbers.
java.util
A Java package with the Scanner class for reading input.
new
An operator that allocates memory for an object
NumberFormat
A java.text class with methods for formatting numbers.
Scanner
A java.util class with methods for reading input from the user.
System.in
The input stream for reading from the keyboard.
next()
Returns a string from the input stream.
nextLine()
Returns the string up to the end of line character from the input stream.
nextInt()
Returns the int read from the input stream.
nextDouble()
Returns the double read from the input stream.
nextBoolean()
Returns the boolean read from the input stream.
close()
Closes the input stream.