单选题请阅读如下程序。
public class OperatorsAndExpressions
{
void residual()
{
int i=100,j=30;
float m=563.5f,n=4.0f;
System.out.println(i%j);
System.out.println(m%n);
}
public static void main (String args[])
{
OperatorsAndExpressions OperAndExp new OperatorsAndExpressions();
//取模运算符在整数和浮点数中的应用
OperAndExp.residual();
}
}
程序运行结果是______。
单选题阅读下列代码:
public class Person{
static int arr[]=new int[10];
public static void main(String args){
System. out. println{arrD]);
}
}
该代码的运行结果是______。
单选题下列选项默认的布局管理器不是BorderLayout的是( )。
单选题以下不构成无限循环的语句或语句组是( )。 A.n=0: do++n;while(n<=0); B.n=0: while(1)n++; C.n=10; while.(n); n--; D.for(n=0,i=1;;i++)n+=i;
单选题以下程序的输出结果是
____
。
void main()
{int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=1;
for(i=0;i<3;i++)
for(j=i;j<=i.j++)t=t+b[i][b[j][j];
printf("%d/n",t);
}
单选题以下程序的输出结果是( )。 #define M(x,y,z) x*y+z main() int a=1,b=2,c=3; printf("%d/n",M(a+b,b+c,c+a)); A.19 B.17 C.15 D.12
单选题下列关于变量作用域的描述中,不正确的是( )。
单选题下列安全控制命令中,属于现实证书缓存区和密钥表项命令的是( )。 A) policytool B) kinit C) klist D) ktab
单选题下面程序段的输出结果为( )。 mblic class Test public static void main(String args[]) boolean a,b,c; a=(3<5); b=(a==true); System.out.println("a="+a+"b="+b); c=(b=false); System.out.println("b="+b+"c="+c); A.a=true b=false b=true c=false B.a=true b=false b=true c=true C.a=true b=true b=true c=false D.a=false b=false b=true c=false
单选题目前,计算机病毒传播最快的途径是( )。 A.通过软件复制 B.通过网络传播 C.通过磁盘拷贝 D.通过软盘拷贝
单选题不允许作为类及类成员的访问控制符的是( )。
单选题给出下面程序的代码: byte[ ] array1, array2[ ]; byte array3[ ][ ]; byter[ ][ ] array4; 下列数组操作语句中不正确的是( )。 A) array2=array1 B) array2=array3; C) array2=array4 D) array3=array4
单选题ava程序与数据库的连接机制是 A) ODBC B) JDBC C) ODBC API D) SQL/CLI
单选题有以下程序: void main() unsigned char a,b; a=4 | 3: b=4&3: printf("%d%d/n",a,b); 执行后输出的结果是( )。 A.7 0 B.0 7 C.1 1 D.43 0
单选题对象状态的持久化是通过______实现的。 A.文件 B.管道 C.串行化 D.过滤器
单选题在Java中,实现用户界面功能的包是______。 A.java. applet B.javax. transaction C.java. util D.java. awt
单选题在下面程序的空白处,应填入的正确选项是 import java.io.*;
public class writeInt { public static void
main(String[]a) { int[] myArray={10,20,30,40};
try{ DataoutputStream dos=new DataoutputStream(new
FileOutputStream("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");} } }
A. start()
B. close()
C. read()
D. write()
单选题下面程序的功能是将一个整数数组写入二进制文件。在下画线处应填入的选项是 import java.io.*; public class XieShuzu public static void main(String[]
单选题Java中类ObjectOutputStream支持对象的写操作,这是一种字节流,它的直接父类是______。
A.Writer
B.DataOutput
C.OutputStream
D.ObjectOutput
单选题下列哪个类的对象负责表格大小的确定、内容的填写、赋值、表格单元更新的检测等等与表格内容有关的属性及其操作?