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

下面的代码运行的结果是: class B extends Object{? ? static? ? {? ? ? ? System.out.println("Load B");? ? }? ? public B()? ? {? ? ? ? System.out.println("Create B");? ? }}class A extends B{? ? static? ? {? ? ? ? System.out.println("Load A");? ? }? ? public A()? ? {? ? ? ? System.out.println("Create A");? ? }}public class Testclass{? ? public static void main(String[] args)? ? {? ? ? ? new A();? ? }}

  • A.Load B ->Create B->Load A -> Create A
  • B.Load B -> Load A  ->Create B  ->Create A
  • C.Load B -> Create B-> Create A -> Load A
  • D.Create B ->Create A ->Load B ->Load A
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 14个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部