Question:

What is wrong with this code?

public String readLine() {
    try {
      BufferedReader br = 
         new BufferedReader(new FileReader("file.txt"));
      String line = br.readLine();
      br.close();
      return line;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
}

Answers:


Keywords:

© 2017 QuizBucket.org