digital-garden/notes/Собеседования/Задачи/Задача 12.md
2024-06-13 21:01:37 +03:00

27 lines
425 B
Markdown

---
parents:
- "[[Вопросы для собеседование Java]]"
---
```java
public class Main {
public static void main(String[] args) {
System.out.println(method());
}
private static int method() {
try {
throw new RuntimeException();
} catch (RuntimeException e) {
return 1;
} finally {
return 2;
}
}
}
```
%%
2
%%