单选题Java以JVM为基础,最上层是______。
单选题下列( )不是nio包的新特点。A.内存映射技术 B.文件锁定C.字符及编码 D.阻塞I/O
单选题在Java源文件中什么类最多只能有一个,其他类的个数不限? A.public B.private C.protected D.没有这种类型
单选题数据库概念设计的过程中,视图设计一般有三种设计次序,以下各项中不对的是( )。
单选题下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是( )。 Importjava.io.*; publicclassExam publicstaticvoidmain(Stringargs[]) intch=0; System.out.println("输入一个字符:"); try ch=System.in.read(); charch_A='A',ch_Z='Z'; intdelta_c=(inoch_A+(int)ch_Z-ch; System.out.println("编码后的字符为:"+(char)delta_c); catch(IOExceptione) e.printStackTrace();
单选题Java对I/O访问所提供的同步处理机制是( )。 A.字节流 B.过滤流 C.字符流 D.压缩文件流
单选题下列程序的运行结果是______。 public class Test {
public static void main(String[] args) { float
i=3.0f; int n=10;
System.out.print(i++); System.out.println("," +
n*i++); } )
A.4.0,36.0
B.3.0,40.0
C.3.0,36.0
D.4.0,40.0
单选题在switch(expression)语句中,expression的数据类型不能是______。
单选题有以下程序: #include <stdio.h> struct ord int x,y;dt[2]=1,2,3,4; main() struct ord *p=dt; printf("%d",++p->x);printf("%d/n",++p->y); 程序的运行结果是( )。 A.1,2 B.2,3 C.3,4 D.4,1
单选题在多线程程序设计中,如果采用继承Thread类的方式创建线程,则需要重写Thread类的______方法。 A.start B.local C.interrupt D.run
单选题下列哪个选项可以正确用以表示八进制值8? ( )
单选题如下图所示的4棵二叉树中,不是完全二叉树的是()。
单选题下列是定义一个接口ITF的程序,在横线处应填入的选项是( )。 public interface ITF public static final double PI=3.14; public ______ double area(double a,double b); A) interface B) static C) final D) abstract
单选题为了支持压栈线程与弹栈线程之间的交互与同步,在程序的下划线处依次填入的语句是
public class IntStack{
private int idx=0;
private int[] data=new int[8];
public ______ void push(int i){
data[idx]=i;
idx++;
_____
}
......
}
单选题自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。 A.byte, short, char→int→long→float→double B.float→int→long→byte, short, char→double C.int→long→float→double→byte, short, char D.double→int→float→long→byte, short, char
单选题当Frame的大小被改变时,Frame中的按钮的位置可能被改变,则使用下列哪一个布局管理器( )。
单选题下列关于Applet的说法中,错误的是______。
单选题一个int类型的常量和一个byte类型的常量做加法,则其结果的类型为( )。
单选题目前Java所支持的图像格式不包括______。
单选题在AWT事件中,可以使组件增加、移动的事件是______。
