Chapter 11 Progress Checks

1. What will happen if you forget to close a file?

2. What is the difference between binary files and textfiles?

3. Using the try-catch block, write code that opens a file default.dat when an attempt to open a user-designated file raises an exception.

4. Using a File object, write code to display files in a user-specified directory and its subdirectories.

a. without recursion

b. with recursion

5. Create a class that stores all the Students from all classes maintained by a Registrar object.  Add some useful methods to the class. (info)

6. Figure out the results from exceptions from different locations in the ExceptionsExample.java.