Ch. 8: Primitive Data
bytes
A primitive data value uses a small, fixed number of _____.
not
A programmer can ____ create new primitive data types.
all
____ values in a computer are represented using one data type or another.
Integer floating
_____ types have no fractional part; _______ point types have a fractional part.
values
______ are not just numbers, but any kind of data that a computer can process.
control
______ characters are bit patterns that show the end of a line or where to start pages
decimal
______ point tells the compiler to represent the value using a floating point primitive data type.
long
A 64 bit ______ literal has an upper case 'L' or lower case 'l' at the end.
apostrophe
A character literal is a single character with an on each _______ side
objects
All data in Java falls into one of two categories: primitive data and ______.
object
An _______ is a big block of data. An """"" may use many bytes of memory.
arbitrary
Computer memory stores ______ bit patterns
commas
In source programs, floating point literals always have a decimal point in them, and no ________
data type
Is a scheme for using bits to represent values.
single
Primitive type char represents a ______ character.
explicitly
Sometimes you need to _______ ask for a single-precision float literal. Do this by putting a lower case 'f' or upper case 'F' at the end
d D
Sometimes you need to explicitly ask for a double literal. Do this by putting a lower case '____' or upper case '_____' at the end
24 7
The data type float has ____ bits of precision. This is equivalent to only about ____ decimal places. (The rest of the 32 bits are used for the sign and size of the number.)
class
The data type of an object is called its ______.
primitive data
The eight ________ _______ types are: byte, short, int, long, float, double, char, and boolean.
8
There are only ___ primitive data types.
many
There are only eight primitive data types. However, Java has _______ types of objects, and you can invent as many others as you need. Any data type you invent will be a type of object.
built into
There are types of data that are so fundamental that ways to represent them are ___ ____ Java.
difference
There is a fundamental ________ between the method used to represent integers and the method used to represent floating point numbers.
int double
Usually you should use ___ or _________ for your numeric data.
literal
a ______ is a value that is explicitly shown in the program.
double
a floating point literal will automatically be of type _______.
15
double has much greater precision: about _____ significant decimal digits.
double
double has twice as many bits and is sometimes called "________-precision floating point".
single
float is sometimes called "________-precision floating point".
boolean
is used to represent a single true/false value
\n
newline character
char
primitive data type for characters in Java is named _____.
fundamental
primitive means "a __________ component that is used to create other, larger parts."
short
size: 16 bits | range: -32,768 to +32,767
int
size: 32 bits | range: -2 billion to +2 billion
float
size: 32 bits | range: -3.4E38 to +3.4E38
double
size: 64 bits | range: -1.7E308 to 1.7E308
long
size: 64 bits | range: -9E18 to +9E18
byte
size: 8 bits | range: -128 to +127
\t
tabulation character