Ch2 Primitive Data Types
What does ASCII stand for?
American Standard Code for Information Interchange
What are the only valid values of boolean?
True and false
What is a character set?
an ordered list of characters, with each character corresponding to a unique number
What's the difference between char and String?
char holds one character while String holds multiple characters
Java assumes all floating point literals are...
double
Which primitive data types represent integers?
byte, short, int, and long
What are the eight primitive data types in Java?
byte, short, int, long, float, double, char, and boolean
How many primitive data types are there in Java?
Eight
What are control characters?
Characters that don't have a specific symbol that represents them, like the null and carriage return marks
What is primitive data and how is it different from objects?
Primitive data are basic values like numbers or characters, objects are more complex entities that contain primitive data to define them
What is the difference between the numeric primitive data types?
Their size and values they can store
A char variable in Java can store any character from what character set?
Unicode character set
What variable stores a single character?
char
Which primitive data types represent floating point numbers?
float and double
Java assumes all integer literals are...
int
In Java, character literals are distinguished by...
single quotes