What is the output of the following code if "example.txt" contains two lines: "Hello!" and "Goodbye!"?
import java.io.*;
public class ReadAllLines {
public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new FileReader("example.txt"))) {
String line;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}