联系我们   收藏本站   设为首页   
 
 
JAVA学习室
SCJP
    当前位置: JAVA学习室首页>> SCJP在线练习
欢迎参加SCJP在线练习
目前题库中共有728个题(id号1--728),可随机练习,也可输入试题id号练习
如试题或答案有误,请留言!!

当前试题id号=312

试题
What will be the result of compiling the following code:
public class Test {
  static int age;
  public static void main (String args []) {
  age = age + 1;
  System.out.println("The age is " + age);
} }
A. Compiles and runs with no output
B. Compiles and runs printing out The age is 1
C. Compiles but generates a runtime error
D. Does not compile
E. Compiles but generates a compile time error
Select the most appropriate answer.

请选择: A B C D E

  • 点击此处查看答案!!
  • 正确答案:B
    简评:没有
如果你想随机练习,请直接点"下一题",否则请输入试题id号(1--728):