hc学习平台

 找回密码
 立即注册
搜索
热搜: 活动 交友 javakc
 › 97-张津帆 › 日志

What will be the output when you compile and execute the following program  

2022-06-17 17:47:31 查看(132) 回复(0)

class  Test{
    private  void  test(  ){
        System.out.println(6+6+"(Javakc)");
    }
    static  public  void  main(String[  ]  a){
        new  Test(  ).test(  );
    }
}
Select  most  appropriate  answer
A、66(Javakc)
B、12(Javakc)
C、Compilation  Error.Incompatible  type  for  +.Can't  add  a  String  to  an  int
D、Runtime  Error.Incompatible  type  for  +.Can't  convert  an  int  to  a  string
B

评论 (0 个评论)

facelist

全部作者的其他最新日志



站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, , Processed in 0.195171 second(s), 9 queries .

Powered by javakc! X1.0

© 2004-2014 javakc

f1208.com 备案号:京ICP备14030918号-1

返回顶部