Review Questions | Heaton Research

Review Questions

Get the entire book!
Java for the Beginning Programmer

1. What is the primary difference between double and long?

2. What datatype would you use to store the number of students in a class?

3. What datatype would you use to store someone’s hourly wage (i.e. $12.50)?

4. Is String a primitive data type? Why or why not?

5. What is the purpose of the final keyword?

Copyright 2005-2008 by Heaton Research, Inc.