当前学科:Java语言程序设计
  • 题目: 未知类型
    当编译和运行下面的代码时,出现的结果为()。public class NewClass {static int total=10;public static void main(String args[]){ new NewClass();}public NewClass(){System.out.println(“In Test”);System.out.println(this)

      A.在第2行将出现编译错误

      B.在第9行将会出现编译错误

      C.屏幕上将会有10输出

      D.程序将会通过编译,但是会有运行时错误

    答案: <查看本题扣1积分>

    查看答案

    答案不对?请尝试站内搜索