21 lines
295 B
Markdown
21 lines
295 B
Markdown
|
---
|
||
|
parents:
|
||
|
- "[[Вопросы для собеседование Java]]"
|
||
|
---
|
||
|
```java
|
||
|
public class Train {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
method(1);
|
||
|
}
|
||
|
|
||
|
public static int method(int number) {
|
||
|
return method(number);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
```
|
||
|
|
||
|
%%
|
||
|
StackOverflowError
|
||
|
%%
|