Review Questions | Heaton Research

Review Questions

Get the entire book!
Java for the Beginning Programmer

1. How do you read a number from the user?

2. What is the difference between print and println?

3. What happens if a “bad number” is passed to a method such as Integer.parseInt?

4. How do you handle “bad numbers” properly in a Java program?

5. What is the purpose of a try/catch block?

Copyright 2005-2008 by Heaton Research, Inc.