Chapter 2 Flashcards
\n
New line (advances the cursor to the next line for subsequent printing)
\t
Tab (cause the cursor to skip over to the next tab stop)
\b
Backspace (causes the cursor to back up, or move left, one position
\r
Carriage return (causes the cursor to go to the beginning of the current line, not the next line)
\
Backslash (causes a backslash to be printed)
\’
Single quote (causes a single quotation mark to be printed)
\”
Double quote (causes a double quotation mark to be printed)
Variable
Named storage location in the computers memory
Literal
A value written into the code of a program
Variable declaration
Tells compiler variable’s name and data type
Primitive date types
Byte, short, int, long, char, boolean, float, double
Highest rank data type
Double
Second highest rank data type
Float
Third highest data type
Long
Fourth rank data type
Int