章节

下列程序的运行结果是(  )。 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;

下列程序的运行结果是(  )。public class Test\{ public static void main(String[]args)\{ int x=3,y=4,z=5;if(x>3)\{ if(y<2) System.out.println("show one"); else System.out.println("show two"); \} else\{ if(z&

下列程序的运行结果是(  )。public class Test\{public static void main(String[]args)\{int x=3,y=4,z=5;if(x>3)\{if(y<2)System.out.println("show one");elseSystem.out.println("show tw