下列程序的输出结果是public class fff { void printValue (int m) { do { System.out.println("The value is" +m); } while(--m>10) } public static void main (String arg[]) { int i=10; Test t= new Test(); t. printValue(i); }}A.8B.9C.10D.11

下列程序的输出结果是public class fff { void printValue (int m) { do { System.out.println("The value is" +m); } while(--m>10) } public static void main (String arg[]) { int i=10; Test t= new Test(); t. printValue(i); }}

A.8

B.9

C.10

D.11


相关考题:

下列程序段的输出结果是【 】。public class Test {void printValue(int m) {do {System.out.println("The value is"+m);}while (--m>10);}public static void main (String args[]) {int i=10;Test t= new Test();t.printValue(i);}}

下列程序的输出结果是( )。 publicclassTest { voidprintValue(int m) { do { System.out.println("The value is"+m) } while(--m>10) } public static voidmain(Stringargs[]) { inti=10; Testt=newTest(); t.printValue(i); } }A.Thevalueis 8B.Thevalueis 9C.Thevalueis 10D.Thevalueis 11

下列程序的输出结果是( )。 public class fff { void printValue(int m) { do { System.out.println("The value is"+m); } while(--m>10); } public static void main(String arg[]) { int i=10; fff =new fff(); t.printValue(i); } }A.8B.9C.10D.11

下列程序的输出结果是 ( ) Public class fff { void printValue(int m) { do{System.out.println("The value is"+m);} whilE(--m>10) } public static void main(String arg[]) int i=10; Test t=new Test(); t.printValue(i); } }A.8B.9C.10D.11

下列程序的输出结果是( )。 public class Test { void printValue(int m) { do{ System.out.println("The value is"+m) } while(--m10) } public static void main(String args[]) { int i=10; Test t=new Test: t.printValue(i); } }A. The value is 8B.The value is 9C.The value is 10D.The value is 11

下列程序的输出结果是 public class fff { void printValue(int m) { do { System.out.println("The value is" +m); } while( - - m 10) } public static void main(String arg[ ] ){ int i = 10; Test t = new Test( ); t.printValue(i); } }A.8B.9C.10D.11

下列程序的输出结果是( )。 public class fff{ void printValue (int m) { do{System.out.println("The value is”+m): } while (--m>10) } public static void main(String arg []){ int i=10; Test t=new Test(); t.printValue(i); } }A.8B.9C.10D.11

阅读以下说明和Java程序,填写程序中的空(1)~(6),将解答写入答题纸的对应栏内。【说明】以下Java代码实现一个简单绘图工具,绘制不同形状以及不同颜色的图形。部分接口、类及其关系如图5-1所示。【Java代码】interface?DrawCircle?{? //绘制圆形 public(1) ;}class?RedCircle?implements?DrawCircle?{? ?//绘制红色圆形???????public?void?drawCircle(int?radius,intx,?int?y)??{????????????System.out.println("Drawing?Circle[red,radius:"?+?radius?+",x:"?+?x?+?",y:"?+y+?"]");???????}}class?GreenCircle?implements?DrawCircle?{????//绘制绿色圆形??????public?void?drawCircle(int?radius,?int?x,int?y)?{???????????System.out.println("Drawing?Circle[green,radius:"?+radius+",x:?"?+x+?",y:?"?+y+?"]");??????}}abstract?class?Shape?{????//形状? protected? ? (2)???;? ? public?Shape(DrawCircle?drawCircle)?{? ?this.drawCircle=?drawCircle;? ? ? public?abstract?void?draw();}class?Circle?extends?Shape?{? //圆形? ?private?int?x,y,radius;? public?Circle(int?x,int?y,intradius,DrawCircle?drawCircle)?{? ?(3)???;? this.x?=?x;? ? ? this.y?=?y;? ?this.radius?=radius;? }? ? ?public?void?draw()?{? ? drawCircle.? ?(4)? ?;? ? ? }}public?class?DrawCircleMain?{? public?static?void?main(String[]?args)?{? Shape?redCircle=new?Circle(?100,100,10,? (5) );//绘制红色圆形? Shape?greenCircle=new?Circle(200,200,10,(6) );//绘制绿色圆形? ?redCircle.draw(); greenCircle.draw();? ?}}

11、下面程序的输出结果是:() public class Test{ void printValue(int m){ do { System .out .println(“The value is”+m); } while(- - m>10); } public static void main(String arg[]){ int i=10; Test t= new Test(); t.printValue(i); } } A 、8 、B 9 C 、10 D 、11