首页>题库>程序设计师-Java

程序设计师-Ja315道题

1.容器是用来组织其他界面成分和元素的单元,它不能嵌套其他容器。

判断题

2.当Applet程序所在的浏览器最小化或者是转入其它页面时,该Applet程序调用的()方法。

单选题

A. start()~||~init()~||~stop()~||~destroy()

3.注释的作用是使程序在执行时在屏幕上显示//之后的内容。

判断题

4.继承性和多态性的结合,可以生成一系列虽类似但独一无二的对象。

判断题

5.在下列javabean属性中,()属性值的变化可能被其他组件否决掉。

单选题

A. Simple~||~Constrained~||~Index~||~Bound

6.指出正确的表达式是()。

多选题

A. doublea=1.0;~||~Doublea=newDouble(1.0);~||~bytea=340;~||~Bytea=120;

7.下列代码段允许按钮注册一个action事件的是()。

单选题

A. button.enableActionEvents();~||~button.addActionListener(anActionListener);~||~button.enableEvents(true);~||~button.enableEvents(AWTEvent.ACTION_EVENT_MASK);

8.Strings1=”abc”+”def”;2.Strings2=newString(s1);3.if(s1==s2)4.System.out.println(“==succeeded”);5.if(s1.equals(s2))6.System.out.println(“.equals()succeeded”);

单选题

A. 程序将输出:==succeeded~||~程序将输出:.equals()succeeded~||~程序将输出:==succeeded.equals()succeeded~||~程序无输出

9.输入流类对象有read()方法,它以二进制的方式读入数据,不能分解、重组和理解数据,使之变换、恢复到原来的有意义状态。

判断题

10.接口和抽象类是一回事。

判断题

11.在类中的方法中()方法不能说明为抽象方法。

多选题

A. 构造方法~||~静态方法~||~私有方法~||~被protected修饰的方法

12.Jbuilder中可使用()组件创建菜单。

单选题

A. 4个~||~2个~||~3个~||~1个

13.已知如下说明:TextAreata=newTextArea("Hello",5,5),请问()语句是正确的。

多选题

A. Themaximumnumberofcharactersinalineis5.~||~Thedisplayedheightis5linesotherwiseconstrain.~||~Thedisplayedstringcanusemultiplefonts.~||~Thedisplayedstringsareeditable.

14.SQL语句如下:UPDATEchenjiSETname=’andy’,age=28,gender=’M’WHEREID=’16’它完成的功能是()。

单选题

A. 将name=’andy’的记录ID值改为16~||~将age=28的记录ID值改为16~||~将name=’andy’且age=28、gender=’M’的记录的ID值改为16~||~将ID=16的记录name值改为andy、age值改为28、gender值改为M

15.System类的所有属性和方法都是静态的。

判断题

16.对成员的访问控制保护最强的是()。

单选题

A. public~||~缺省~||~private~||~protected

17.下面语句段的输出结果是()。inti=9;switch(i){default、System.out.println("default");case、ystem.out.println("zero");break;case1、System.out.println("one");case2、System.out.println("two");}

单选题

A. default~||~default,zero~||~errordefaultclausenotdefined~||~nooutputdisplayed

18.类Teacher和Student都是类Person的子类

单选题

A. 将构造一个Student对象~||~表达式合法~||~编译时非法~||~编译时合法而在运行时可能非法

19.类Test1、Test2定义如下:1.publicclassTest12.{publicfloataMethod(floata,floatb)throws3.IOException{}4.}5.publicclassTest2extendsTest1{6.7.}将以下()方法插入行6是不合法的。

单选题

A. floataMethod(floata,floatb){}~||~publicintaMethod(inta,intb)throwsException{}~||~publicfloataMethod(floatp,floatq){}~||~publicintaMethod(inta,intb)throwsIOException{}

20.通过设置线程优先级可以使某些线程获得更多的CPU处理时间。

判断题
注册后查看全部试题

保定市乐凯大街305号

电话: 400-608-5357

邮编: 100043


Copyright © 昊元综合学习与考试平台 保定昊元电气科技有限公司版权所有 2021,All Rights Reserved

经营许可证编号:  冀B2-20210069号       备案号:    冀ICP备19021638号