单选题下列方法能够用来实现线程之间通信的是
单选题下列属于黑盒测试方法的是______。
A.语句覆盖
B.逻辑覆盖
C.边界值分析
D.路径分析
单选题下面关于HTML标记的说法中,正确的是______。 A) URL getDocumentBase()方法返回Applet主类的URL B) URL getCodeBase()方法返回包含Applet的HTML文件的URL C) 在HTML中如果不说明String getParameter(String name)的参数,此方法将返回“0” D) HTML标记方法用于获取HTML文件中关于Applet的信息
单选题阅读下列代码
public class Test 2005{
public static void main(String args[]){
System.out.println((3>2)?4:5);
}
}
其运行结果是【 】
单选题为了支持压栈线程与弹栈线程之间的交互与同步,在程序的下画线处依次填入的语句是______。 public class IntStack private int idx=0; private int[]data=new int[8]; public______void push(int i) data[idx]=i; idx++; A.svnchronized() notify() B.synchronized this.wait() C.svnchronized this.notify() D.Serializable sleep()
单选题"++"抖”运算符的操作数个数是( )。
单选题有以下程序: void main() int a,b,d=25; a=d/10%9; b=a&&(-1); printf("%d,%d/n",a,b); 程序运行后输出的结果是( )。 A.6,1 B.2,1 C.6,0 D.2,0
单选题下列不属于软件工程过程的基本活动的是( )。 A) 软件规格说明 B) 软件开发 C) 软件确认 D) 软件需求分析
单选题阅读下面代码 public class Test2005 public static void main(String args[]) String s="Test"; switch(s) case"Java":System.out.print("Java"); break; case"Language":System.out.print("Language"): break; case"Test":System.out.print("Test"); break; 其运行结果是
单选题构造方法( )被调用。
单选题数据报通信协议UDP把每个传输的数据大小控制在下列哪一项之内
单选题下列不属于Applet编写步骤的是( )。 A.引入需要的类和包 B.定义一个Applet类的子类 C.实现Applet类的某些方法 D.加密Applet程序
单选题下列程序的功能是统计字符串中“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”);
}
}
单选题以下不属Java Application应用程序编写和执行步骤的是( )。
单选题程序的3种基本控制结构是
单选题如下程序的输出结果是( )。
public class Test
{
void printValue(int m)
{
do {
System.out.println("The value is"+m);
}
while( --m>10)
}
public static void main(String args[])
{
int i=10;
Test t=new Test();
t.printValue(i);
}
}
单选题使用如下哪个保留字可以使只有在定义该类的包中的其他类才能访问该类?
单选题下列叙述中正确的是( )。 A) 线性表是线性结构 B) 栈与队列是非线性结构 C) 线性链表是非线性结构 D) 二叉树是线性结构
单选题下列的哪个程序段可能导致错误?
单选题数据库系统的基础是( )。