单选题下列各项说法中错误的是______。 A.共享数据的所有访问都必须使用synchronized加锁 B.共享数据的访问不一定全部使用synchronized加锁 C.所有的对共享数据的访问都是临界区 D.临界区必须使用synchronized加锁
单选题在init()函数里得到applet窗口的宽度的语句是( )。 A) int width=this.getY(); B) int width=getSize(); C) int width=getSize().w; D) int width=getWidth();
单选题有以下程序:
void main()
{
int a[3][3],*p,i;
p=&a[0][0];
for(i=0;i<9;i++) p[i]=i;
for(i=0;i<3;i++)printf("%d",a[1][i]);
}
程序运行后输出的结果是______。
单选题下列语言不属于高级语言的是( )。
单选题软件调试的目的是( )。 A) 改善软件的性能 B) 改正错误 C) 发现错误 D) 验证软件的正确性
单选题( )类是所有异常类的父类。
单选题JAVA语言中所有的简单数据类型都被包含在{{U}} {{/U}}中。
A.java.sql
B.java.awt
C.java.lang
D.java.math
单选题以下四个选项中不能看作一条语句的是( )。 A.;) B.a=0,b=0,c=0; C.if(a>0); D.if(b==0)m=1;n=2;
单选题阅读下列代码。
public class Test2005{
public static void main(String args[]){
System.out.println((3>2)?4:5);
}
}
其运行结果是______。
单选题下列代码的执行结果是______
public class Test5{
public static void main(String args[]){
String s1=new String("hello");
String s2=new String("hello");
System.out.println(s1==s2);
System.out.println(s1.equals(s2));
}
}
单选题在待排序的元素序列基本有序的前提下,效率最高的排序方法是
____
。
单选题下面( )方法与applet的显示无关。
单选题阅读下面程序 public class Increment { public static void main( String args[] ){ int c; c=5; System.out.println( c ); System.out.println( c++ ); System.out.println( c ); } )程序运行结果是( )。
单选题下面的( )关键字通常用米对对象加锁,从而使得对对象的访问是排他的。 A.serialize B.translent C.synchronized D.static
单选题在对象串行化中,可以用来保护类中敏感信息的关键字是( )。
单选题下列程序的输出结果是( )。 #include <stdio.h> main() char a[10]= 9,8,7,6,5,4,3,2,1,0),*p=a+5; printf("%d",*--p); A.非法 B.a[4]的地址 C.5 D.3
单选题在下列源代码文件Test.java中,哪个选项是正确的类定义? {{U}} {{/U}}
A.public class test {
public int x=0; public test(int
x) {
this.x=x; } }
B.public class Test {
public int x=0; public Test(int x)
{ this.x=x;
} }
C.public class Test extends Ti,T2 {
public int x=0; public
Test(int x) {
this.x=x; }
}
D.protected class Test extends T2 {
public int x=0; public
Test(int x) {
this.x=x; } }
单选题专门定义常量与变量的保留字是( )。
单选题Java字节码的解释执行方式是______。
单选题用树形结构表示实体之间联系的模型是 A) 关系模型 B) 网状模型 C) 层次模型 D) 以上3个都是
