• 2022-06-07
    下面程序的运行结果是public class Demo { public static void main(String[] args) { new Object(){ public void show(){ System.out.println("helloworld"); } }.show(); }}
    A: 什么也不输出
    B: helloworld
    C: 编译报错
    D: 编译通过,运行报错
  • 举一反三