Why is it important that the first catch{} block does not end with return false?

A good answer might be:

An attempt must be made to close the second file. Just because one file failed to close is no reason not to try the other.

CopyFile Method

The copyFiles() method finally gets down to copying the file. The loop that does the work is just a few statements long!

class CopyMaker
{
   String sourceName, destName;
   BufferedReader source;
   BufferedWriter dest;
   String line;

   private boolean copyFiles()  // return true if copy worked, else false
   {
     try
     {      
       line = source. ;
       while (  )
       {
         dest. (line);
         dest. ;
         line = source. ;
       }
     }
     catch ( IOException iox )
     {
       System.out.println("Problem reading or writing" );
       return false;
     }

     return true;
   }
}

QUESTION 12:

Click in the blanks.

Click Here after you have answered the question