多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

public class Bootchy {  int bootch;  String snootch;  public Bootchy() {  this(”snootchy”);  System.out.print(”first “);  }  public Bootchy(String snootch) {  this(420, “snootchy”);  System.out.print(”second “);  }  public Bootchy(int bootch, String snootch) {  this.bootch = bootch;  this.snootch = snootch;  System.out.print(”third “);  }  public static void main(String[] args) {  Bootchy b = new Bootchy();  System.out.print(b.snootch +“ “ + b.bootch);  }  }  What is the result?() 

  • A、 snootchy 420 third second first
  • B、 snootchy 420 first second third
  • C、 first second third snootchy 420
  • D、 third second first siiootchy 420
  • E、 third first second snootchy 420
  • F、 first second first third snootchy 420
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题