当前位置: 答题翼 > 问答 > 其他 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

请先阅读下面的代码 public class Test { public Test(); } } 上面程序的运行结果为下列哪一项?


请先阅读下面的代码 public class Test { public Test(); } } 上面程序的运行结果为下列哪一项?

A、构造方法一被调用了

B、构造方法二被调用了

C、构造方法三被调用了

D、以上三个都会输出

参考答案
您可能感兴趣的试题
  • 下面的代码中有什么错误吗?_______ using System; class A { public virtual void F(){ Conso

  • 下面的代码中有什么错误吗?_______ using System; class A { public virtual void F(){

  • 下面的代码中有什么错误吗?_______ using System; class A { public virtual void F(){

  • 阅读下面的程序:public class Person{ int arr[ ]=Hew int[10]; public static void main(String

  • 给出下面的代码: public class Person{ static int arr[] =n

  • 给出下面的代码: class Person{ String name department ; public void printValue(){ System.out.prin