计算机等级考试
下列程序的运行结果是( )。 public class Test\{ public static void main(String[]args)\{ int[ ]m=new int[ ] \{1,2,3,4,5,6,7,8\}; int sum=0; for(int i=0;i
下列程序的运行结果是( )。public class Test\{public static void main(String[]args)\{int[ ]m=new int[ ] \{1,2,3,4,5,6,7,8\};int sum=0;for(int i=0;i
下列程序的运行结果是( )。 class Shape\{ public Shape()\{ System.out.print("Shape"); \} \} class Circle extends Shape\{ public Circle()\{ System.out.print("Circle"); \} \} public class Test\{ public static void main(String[]args)\{ Sha
下列程序的运行结果是( )。class Shape\{ public Shape()\{ System.out.print("Shape"); \}\}class Circle extends Shape\{ public Circle()\{ System.out.print("Circle"); \}\}public class Test\{ public sta
下列程序的运行结果是( )。public class Test\{ public static void main(String[]args)\{ int percent=10; tripleValue(percent); System.out.println(percent); \} public static void tripleValue(int x)\{ x=3*x; \} \}
下列程序的运行结果是( )。public class Test\{public static void main(String[]args)\{int percent=10;tripleValue(percent);System.out.println(percent);\}public static void tripleValue(int x)\{x=3*x;