移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

class BitStuff {   BitStuff go() { System.out.print("bits "); return this; }   }   class MoreBits extends BitStuff {   MoreBits go() { System.out.print("more "); return this; }   public static void main(String [] args) {   BitStuff [] bs = {new BitStuff(), new MoreBits()};   for( BitStuff b : bs)   b.go();   }   }   结果为:()  

发布日期:2021-11-25

class BitStuff {   BitStuff go() { System.out.prin...
A

bits bits

B

bits more

C

more more

D

编译失败

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!