0
点赞
收藏
分享

微信扫一扫

AI大模型探索之路-基础篇5:GLM-4解锁国产大模型的全能智慧与创新应用

sunflower821 2024-05-25 阅读 6

当在main方法中新建自身所在类的对象,并调用main方法时,会不断循环调用main方法,直到栈溢出

package com.keywordStudy;


public class mainTest {
    static int value = 33;

    public static void main(String[] args) throws Exception{
        String[] s=new String[]{"fdsafasd","干啥事"};
        //new mainTest().printValue();
        new mainTest().main(s);
    }

    private void printValue(){
        int value = 3;
        System.out.println(this.value);
    }
}

结果:

举报

相关推荐

0 条评论