Given the code fragment:
public static void main (String[] args) throws IOException {
BufferedReader brCopy = null;
try (BufferedReader br = new BufferedReader (new FileReader(''employee.txt''))) { //
line n1
br.lines().forEach(c -> System.out.println(c));
brCopy = br;//line n2
}
brCopy.ready(); //line n3;
}
Assume that the ready method of the BufferedReader, when called on a closed BufferedReader, throws an exception, and employee.txt is accessible and contains valid text.
What is the result?
Zack
4 months agoMarget
4 months agoMarnie
4 months agoAsuncion
5 months agoRomana
5 months agoAron
5 months agoVelda
5 months agoHubert
5 months agoBrock
6 months agoDoyle
6 months agoPeter
6 months agoVon
6 months agoTula
6 months agoMalcolm
6 months agoAngelica
6 months agoMelvin
6 months agoShaun
6 months agoDeangelo
10 months agoEdelmira
11 months agoSolange
9 months agoInes
9 months agoTemeka
10 months agoEmily
11 months agoFrank
11 months agoCarla
9 months agoJolene
10 months agoBarrett
10 months agoTalia
10 months agoCarissa
10 months agoAvery
11 months agoAndree
11 months agoTeri
9 months agoKirk
10 months agoBong
10 months agoNoel
11 months agoKanisha
12 months agoZana
12 months agoKanisha
12 months ago