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
3 months agoMarget
3 months agoMarnie
3 months agoAsuncion
4 months agoRomana
4 months agoAron
4 months agoVelda
4 months agoHubert
4 months agoBrock
5 months agoDoyle
5 months agoPeter
5 months agoVon
5 months agoTula
5 months agoMalcolm
5 months agoAngelica
5 months agoMelvin
5 months agoShaun
5 months agoDeangelo
10 months agoEdelmira
10 months agoSolange
8 months agoInes
8 months agoTemeka
9 months agoEmily
10 months agoFrank
10 months agoCarla
8 months agoJolene
9 months agoBarrett
9 months agoTalia
9 months agoCarissa
9 months agoAvery
10 months agoAndree
10 months agoTeri
8 months agoKirk
9 months agoBong
9 months agoNoel
10 months agoKanisha
11 months agoZana
11 months agoKanisha
11 months ago