Understanding the Java stack

前端 未结 7 1248
无人及你
无人及你 2020-12-24 06:44

There is this code:

public class Main {
    public static void main(final String[] args) throws Exception {
        System.out.print(\"1\");
        doAnythi         


        
7条回答
  •  别那么骄傲
    2020-12-24 07:18

    Stack overflow.

    You are only printing on exception,in the meantime the program recurses into overflow.

    At which point this occurs depends on individual systems, memory, etc.

    What is the purpose of the program?

提交回复
热议问题