首页/ 题库 / [多选题]

Finally, they ret的答案

相关题目

下面程序的输出结果是:

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);}}


如果在try块之后没有catch块,则必须有finally块。

try语句块后可以跟随    个finally语句块。

I was the        of the Students’ Union.

—They are testing the 3D printer. Don’t you come and see it?

—What?                       

May I ask you why you left the former company

                     

The meeting suggested          the loan first.

— Did the medicine make you feel better?  

— No. The more        ,        I feel.

The music           like the singing of a bird.

They promised          the car for us.

They          since last night. They are about to finish the work. 

More than 30 people ______ the position.

                     

 

— According to law, they refer to transportation, construction, finance, insurance and the like.

 

Being an         manager means knowing when to use the right management style.

— What about the commission?

—                      

Finally, they return the        to the people who bought shares in the company.

Children often dream of ________ they want to become when they grow up

            delicious cakes they are! 

abstract class Shape {

int a,b;

public Shape(int aa, int bb) {a=aa; b=bb;}

abstract public double area();

}

class Rectangle extends Shape {

public Rectangle(int aa, int bb) {super(aa,bb);}

public double area() {return a*b;}

}

class Triangle extends Shape {

public Triangle(int aa, int bb) {super(aa,bb);}

public double area() {return a*b/2;}

}

 

public class XXK3 {

public static void main(String[] args) {

Shape x,y;

x=new Rectangle(10,20);

y=new Triangle(10,15);

System.out.println(x.area()+", "+y.area());

}

}

interface Shape {

double area();

double girth();

}

class Rectangle implements Shape {

int a,b;

public Rectangle(int aa, int bb) {a=aa; b=bb;}

public double area() {return a*b;}

public double girth() {return 2*(a+b);}

}

 

public class XXK3 {

public static void main(String[] args) {

Shape x;

x=new Rectangle(5,8);

System.out.println(x.area()+", "+x.girth());

}

}

广告位招租WX:84302438

免费的网站请分享给朋友吧