首页 试题广场 > 试题详情
单选题

下面程序的输出是什么?package algorithms.com.guan.javajicu;public class TestDemo{    public static String output = ””;    public static void foo(inti)    {        try        {            if (i == 1)            {                throw new Exception();            }        }        catch (Exception e)        {            output += “2”;            return ;        } finally        {            output += “3”;        }        output += “4”;    }    public static void main(String[] args)    {        foo(0);        foo(1);        System.out.println(output);    }}

  • A.342
  • B.3423
  • C.34234
  • D.323
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 7个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部