Skip to content

Commit 45b6228

Browse files
authored
they believed scripture,&word which Jesus had said
When therefore he was risen from the dead, his disciples remembered that he had said this unto them; and they believed the scripture, and the word which Jesus had said. (John 2:22)
1 parent d757325 commit 45b6228

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
//When therefore he was risen from the dead, his disciples remembered that he had said this unto them; and they believed the scripture, and the word which Jesus had said. (John 2:22)
3+
4+
package com.javarush.task.task38.task3802;
5+
6+
/*
7+
Проверяемые исключения (checked exception)
8+
*/
9+
10+
import java.io.FileReader;
11+
12+
public class VeryComplexClass {
13+
public void veryComplexMethod() throws Exception {
14+
FileReader reader = new FileReader("*.java");
15+
}
16+
17+
public static void main(String[] args) {
18+
19+
}
20+
}
21+
22+
/*
23+
Проверяемые исключения (checked exception)
24+
25+
Напиши реализацию метода veryComplexMethod().
26+
27+
Он должен всегда кидать какое-нибудь проверяемое исключение.
28+
29+
Кинуть исключение (throw) явно нельзя.
30+
31+
32+
33+
34+
35+
Требования:
36+
37+
1. Метод veryComplexMethod класса veryComplexClass не должен использовать ключевое слово throw.
38+
39+
2. Метод veryComplexMethod класса veryComplexClass должен бросать исключение.
40+
41+
3. Брошенное исключение НЕ должно быть исключением времени выполнения(RuntimeException).
42+
43+
4. Метод veryComplexMethod не должен быть приватным.
44+
*/

0 commit comments

Comments
 (0)