单选题

main程序输出: public class Main {  ...

发布于 2022-03-02 16:49:05

main程序输出:
public class Main {
    public static void main(String[] args) {
        int i = 0
        int res = 1
        while(true) {
            try {
                res += res / (i++)
                System.out.println("No exception")
            } catch(Exception e) {
                System.out.println("Zero exception")
            } finally {
                System.out.print("In finally clause")
                System.out.println(i)
                if (i == 2) break
            }
        }
    }
}


登录后免费查看答案
关注者
0
被浏览
17
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看