欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

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

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题