Quiz 7 Solution - Wednesday June 14, 2000
1. How many bytes are used to store an int variable?
2. What are the two types of real numbers that we use in Java? What is the
difference between them?
float - stored in 4 bytes
double - stored in 8 bytes
3. What are the valid characters that can be used in an identifier?
- The alphabetical characters, uppercase and lowercase
- The digits 0-9
- The characters _ and $
4. What is the Java keyword used to declare an identifier as a constant?