当前位置: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;

仰卧位低血压综合症 简述污水排水系统。 在日常教学中如何利用色彩的基本特点? 以下关于精确否定关键词的说法,正确的是:() 可以与广泛匹配结合使用。 可以与短语匹配结合使用。 若将关键词添加为精确否定关键词,则只要包含了该词的搜索词都不会触发推广商户的推广结果。 若将关键词添加为精确否定关键词,则只有与该词完全一致的搜索词才不会触发推广商户的推广结果。 《水经注》是我国古代较完整的一部以记载河道水系为主的综合性地理著作,对后世影响深远,其作者郦道元所在的朝代是() 东汉。 西汉。 魏晋南北朝。 唐朝。

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(); 
 }  
}  

参考答案:

  参考解析

本题暂无解析

在线 客服