2010计算机等级考试二级(JAVA)笔试79(二)

时间:2011-08-16 07:26:27

微信搜索关注"91考试网"公众号,领30元,获取事业编教师公务员等考试资料40G
4、实现动态分配对象列表的类是______。

A.Sytem类

B.Cla类

C.Vector类

D.Stack类

参考答案: C

----------------------------------------

25、 下列程序的执行结果是______。 public class Testii{ public static void main(String arg[]){ byte y=4; long r==80L; System.out.println(r/y); } }

A.20B

B.20

C.20.0

D.编译错误

参考答案: B

----------------------------------------

26、______类型,只有8位bit,能表示数据的范围很小,一般很少使用。

A.hort

B.it

C.yte

D.log

参考答案: C

----------------------------------------

27、下列属于J2SDK命令的RMI命令的是______。

A.rmic和rmiregitry

B.rmid和erialver

C.jar和jayah

D.A、B两项都是

参考答案: D

----------------------------------------

28、下列修饰符中,属于非访问限定符的是______。

A.rivate

B.ulic

C.default

D.ycroized

参考答案: D

----------------------------------------

29、 下列for循环语句的执行次数是______。 for(int x=0,y=0; (y! =0)&&(X<4);x++)

A.无限次

B.一次也不执行

C.执行一次

D.执行三次

参考答案: B

----------------------------------------

30、下列赋值语句错误的是______。

A.A

B.i==0;

C.i=i+1:

D.i+=1:

参考答案: B

----------------------------------------

31、设x,y均为已定义的类名,下列声明对象x1的语句中正确的是______。

A.ulic x x1=ew y();

B.x x1:x();

C.x x1=ew x();

D.it x x1;

参考答案: C

----------------------------------------

32、 下列代码的执行结果是______。 public class Test{ public static void main (String args[]){ String s1=new String(welcome); String s2=new String(welcome); System.out.println(s1==s2); System.out.println(s1.equals(s2)); } }

A.fale,fale

B.fale,true

C.true,true

D.true,fale

参考答案: B

----------------------------------------

33、 下列程序执行后,j的值是______。 public class Testggg{ public static void main(String args[]) { int j=1; for(int i=7;i>0;i-=2) j*=2; System.out.println(j); } }

A.15

B.1

C.32

D.16

参考答案: D

----------------------------------------

34、paint()方法使用下列______类型的参数。

A.Grahic

B.Grahic2D

C.

首页 上页 1 2 3 下页 尾页 2/5/5
微信搜索关注"91考试网"公众号,领30元,获取公务员事业编教师考试资料40G
【省市县地区导航】【考试题库导航】

电脑版  |  手机版  |  返回顶部