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

what is the result of the following code?enum AccountType{    SAVING, FIXED, CURRENT;    private AccountType()    {        System.out.println(“It is a account type”);    }}class EnumOne{    public static void main(String[]args)    {        System.out.println(AccountType.FIXED);    }}

  • A.Compiles fine and output is prints”It is a account type”once followed by”FIXED”
  • B.Compiles fine and output is prints”It is a account type”twice followed by”FIXED”
  • C.Compiles fine and output is prints”It is a account type”thrice followed by”FIXED”
  • D.Compiles fine and output is prints”It is a account type”four times followed by”FIXED”
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 1个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部