Chapter 4: Fundamental Data Types Flashcards
number literal
A fixed value in a program this is explicitly written as a number, such as –2 or 6.02214115E23
constants
A value that cannot be changed by a program. In Java, constants are defined with the reserved word final.
operators
A symbol denoting a mathematical or logical operation, such as + or &&.
integer division
Taking the quotient of two integers and discarding the remainder. In Java the / symbol denotes integer division if both arguments are integers. For example, 11/4 is 2, not 2.75.
modulus
The % operator that computes the remainder of an integer division.
prompt
A string that tells the user to provide input.
characters
A single letter, digit, or symbol.
string
A sequence of characters.
literals
A notation for a fixed value in a program, such as –2, 3.14, 6.02214115E23, “Harry”, or ‘H’.
concatenation
Placing one string after another to form a new string.
escape sequence
A sequence of characters that starts with an escape character, such as \n or ".
Unicode
A standard code that assigns code values consisting of two bytes to characters used in scripts around the world. Java stores all characters as their Unicode values.
character
A single letter, digit, or symbol.
primitive types
In Java, a number type or boolean.