Ответ на вопрос №16096: Дан код: publicstaticvoidmain(String() args) throws IOException ‹| File file = new File("test1.txt"):| file.createNewFile():| try (FileReader fr1 = new FileReader("test1.txt")) €| try (FileReader fr2 = new F1leReader("test2.txt")) (| ) catch (I0Exception e) (| System.out.print("test2"): System.out.print("+"): ) catch (FileNotFoundException e) (| System.out.print("test1"): file.delete():|Дан код: publicstaticvoidmain(String() args) throws IOException ‹| - Ответ на вопрос №16096Дан код: publicstaticvoidmain(String() args) throws IOException ‹| - Ответ на вопрос №16096
2024-01-242024-01-24СтудИзба
Дан код: publicstaticvoidmain(String() args) throws IOException ‹| - Ответ на вопрос №16096
-47%
Вопрос
Дан код:publicstaticvoidmain(String() args) throws IOException ‹|
File file = new File("test1.txt"):|
file.createNewFile():|
try (FileReader fr1 = new FileReader("test1.txt")) €|
try (FileReader fr2 = new F1leReader("test2.txt")) (|
) catch (I0Exception e) (|
System.out.print("test2"):
System.out.print("+"):
) catch (FileNotFoundException e) (|
System.out.print("test1"):
file.delete():|
Какая строка выведется на консоль при компиляции и запуске этого кода, если файл test1. txt существует и доступен, а test2.txt — нет?
Ответ

Все деньги, вырученные с продажи, идут исключительно на шаурму