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