Java IO Serialization

© examsiri.com
Question : 3 of 17
 
Marks: +1, -0
Place the code fragments into position to use a BufferedReader to read in an entire text file.
class PrintFile {
  public static void main (String[] args) {
   BufferedReader buffReader = null;
   /* more code here to initialize buffReader */
   try {
    String temp;
    while ( (1)______ (2)_______ ) {
     System.out.println(temp);
    }
   } catch (3)______
   e. printStacktrace();
   }
  }
}

code Fragments
(temp = buffReader.readline())
(temp = buffReader.nextline())
! = null
&& buffReader.hasNext()
(ioException e) {
(FileNotFoundException e) {
Go to Question: