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

多项选择题

Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?() 
public class Q4a39 { 
int a = 1;  
int b = 1;  
int c = 1;  
class Inner {  
int a = 2;  int get() {  
int c = 3;  
// insert statement here  return c; 
 }  
}  Q4a39() {  
Inner i = new Inner();  
System.out.println(i.get());  }  
public static void main(String args[]) { 
 new Q4a39(); 
 }  
}  

    A.c = b;
    B.c = this.a;
    C.c = this.b;
    D.c = Q4a39.this.a;
    E.c = c;

点击查看答案&解析

相关考题

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

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