What does the following Java code output when "example.txt" contains "Hello!\n" followed by "Goodbye!"?
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
try (BufferedReader reader = new BufferedReader(new FileReader("example.txt"))) {
System.out.println(reader.readLine());
} catch (IOException e) {
System.out.println("Error");
}
}
}