当前位置:SCJP程序员认证考试题库

问题:

[单选]

public class WhileFoo { 
public static void main (String []args)   { 
int x= 1, y = 6; 
while (y--)  {x--;} 
system.out.printIn(“x=” + x “y =” + y); 
} 
}  
What is the result?()  

A .  The output is x = 6 y = 0
B .  The output is x = 7 y = 0
C .  The output is x = 6 y = -1
D .  The output is x = 7 y = -1
E .  Compilation will fail.

 public class X {   public static void main (String[] args)  {   byte b = 127;   byte c = 126;   byte d = b + c;   }  }   Which statement is true?()  Compilation succeeds and d takes the value 253.。  Line 5 contains an error that prevents compilation.。  Line 5 throws an exception indicating “Out of range”。  Line 3 and 4 contain error that prevent compilation.。  The compilation succeeds and d takes the value of 1.。 社会性行为问题的一般特征有:()、不受普遍方法控制的行为、不理会现实、幼儿生活中存在客观困难。 焦虑具有两个关键特征:即强烈的负面情绪和()。 虽然各种焦虑行为的干预指导策略有所不同,但是让幼儿接触引起焦虑的环境,()和()是所有指导策略的基本路线。 在网盟推广中关于出价,以下说法错误的是:() 出价越高越好,展现机会大。 出价越低越好。 出价无需调整,保持即可。 出价需要调整至合理情况,以保证投入产出比和展现的平衡。

public class WhileFoo { 
public static void main (String []args)   { 
int x= 1, y = 6; 
while (y--)  {x--;} 
system.out.printIn(“x=” + x “y =” + y); 
} 
}  
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服