My Java Quiz

The ultimate place to learn Java!

Question #3: 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);
    }
}