True/False 6

  1. InputStream and OutputStream are abstract classes.
  2. The FileInputStream, FileOutputStream, or RandomAccessFile classes must always be used to process external files.
  3. A compilation error will occur if the file doesn't exist when creating a FileInputStream for the file.
  4. The FileNotFoundException occurs when creating FileInputStream for a nonexistent file.
  5. The FileFoundException occurs when creating FileOutputStream for a nonexistent file.
  6. To determine whether a file exists, you can use the exists() method on a File object.
  7. RandomAccessFile, DataInputStream, and DataOutputStream share the same file formats.
  8. The read method, the write method, and creating stream constructors can throw IOException errors.
  9. The class PrintStream is used in JDK 1.02, but is deprecated in JDK1.1.
  10. The System.out.print() method is deprecated because System.out is a variable of the PrintStream class.
Visited times since 7 March 1999.