A.类名
B.对象名
C.包名
D.变量名
单选题 | 下列数据结构中,能够按照“先进后出”原则存取数据的是 | 查看答案 |
单选题 | 下列表达式中,类型可以作为int型的是 | 查看答案 |
单选题 | Java中类ObjectOutputStream支持对象的写操作,这是一种字节流,它的直接父类是 | 查看答案 |
单选题 | Class类的对象由______自动生成,隐藏在.class文件中,它在运行时为用户提供信息。 | 查看答案 |
单选题 | 软件设计中划分模块的一个准则是 | 查看答案 |
单选题 | 下列变量名的定义中,符合Java命名约定的是 | 查看答案 |
单选题 | 下列数据结构中,属于非线性结构的是 | 查看答案 |
单选题 | 为使Java程序独立于平台,Java虚拟机把字节码与各个操作系统及硬件 | 查看答案 |
单选题 | 在下列程序的空白处,应填入的正确选项是 import java.io.*; Public class writeInt{ Public static void main(string[ ] a) { Int[ ] myArray = {10,20,30,40}; try{ DataOutputSystem dos= new DataOutputSystem (new FileOutputSystem(“ints.dat”)); for (int i=0;I<myArray.length;i++) dos。writeInt(myArray[i]); dos. System.out.println (“Have written binary file ints.dat”); } Catch(IOException ioe) { System.out.println(“IO Exception”); } } } |
查看答案 |
单选题 | 在关闭浏览器时调用,能够彻底终止Applet并释放该Applet所有资源的方法是 | 查看答案 |
单选题 | 有三个关系R,S和T如下: 其中关系T由关系R和S通过某种操作得到,该操作为 |
查看答案 |
单选题 | 在一个线程中调用下列方法,不会改变该线程运行状态的是 | 查看答案 |
单选题 | 下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是 public class FindKeyWords{ public static void main(sring[] args){ sting text= “ An array is a data structur that stores a collection of” + “values of the same type . You access each individual value” + “through an integer index . For example,if a is an array” + “of inergers, then a[i] is the ith integer in the array.”; Int arrayCount =0; Int idex = -1; Sting arrarStr =”array”; Index = text.indexof(arrayStr); While(index 0) { ++arrayCount; Index += arrayStr.length(); Index = text.indexof(arrayStr,index); } System.out.println (“the text contains” + arrayCount + “arrays”); } } |
查看答案 |
单选题 | 下列选项中不属于结构化程序设计原则的是 | 查看答案 |
单选题 | 阅读下列程序 Public class Test implements Runnable{ Private int x=0; Private int y=o; boolean flag=true; Public static void main(string[ ] args) { Test r =new Test( ); Thead t1=new Thead(r); Thead t2=new Thead(r); t1.start( ); t2.start( ); } Public void run(){ While(flag) { x++; y++; system.out.println(“(” +x_ “,”+y+”)”); if (x>=10) flag=false; } } } 下列对程序运行结果描述的选项中,正确的是 |
查看答案 |
单选题 | 阅读下列程序片段 Public void test(){ Try{ sayHello(); system.out.println(“hello”); } catch (ArrayIndexOutOfBoundException e) { System.out.println(“ArrayIndexOutOfBoundException”); }catch(Exception e){ System.out.println(“Exception”); }finally { System.out.println(“finally”); } } 如果sayHello( )方法正常运行,则test( )方法的运行结果将是 |
查看答案 |
单选题 | 算法的空间复杂度是指 | 查看答案 |
单选题 | 数据库管理系统是 | 查看答案 |
单选题 | 点击窗口内的按钮时,产生的事件是 | 查看答案 |
单选题 | 用于设置组件大小的方法是 | 查看答案 |