return openFiles() && copyFiles() && closeFiles();

A good answer might be:

No. The && operator is a short-circuit operator (see chapter 40). If openFiles() returns false, the entire expression is false no matter what, so the other methods are not called.

Opening Files

Now look at the openFiles() method. It will open a BufferedReader stream with the source file and a BufferedWriter with the destination file. Sadly, the method needs some work.

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

   private boolean openFiles()  // return true if files open, else false
   {
     // open the source
     try
     {      
       source = new (new FileReader( sourceName ));
     }
     catch (  iox )
     {
       System.out.println("Problem opening " + sourceName );
       return false;
     }

     // open the destination
     try
     {      
       dest = new (new FileWriter( destName ));
     }
     catch (  iox )
     {
       System.out.println("Problem opening " + destName );
       return false;
     }

     return   ;
   }

   public boolean copy(String src, String dst )
   {
     sourceName = src ;
     destName   = dst ;
     return openFiles() && copyFiles() && closeFiles();
   }
}

QUESTION 10:

Click in the blanks.

Click Here after you have answered the question