21. RandomAccessFile类中()方法返回文件的长度 A. long length( ) B. long size( ) C. long fileLength( ) D. long getLength( ) ...
8. 在Java中,定义为类类型的变量实际上并不保存对象数据。变量只用来标识一个实际对象。这种类型的变量称作() A. 复合数据类型 B. 类 C. 对象 D. 成员 E. 引用 ...
48. int elements[]={1,2,3,4,5,6}; int hold[]={10,9,8,7,6,5,4,3,2,1}; System.arraycopy(elements,0,hold,0,elements.length); hold[3]的值是() A. 3 B. 4 C. 7 D. 8 ...
39. String t="This is the ";String s="String" t+=s;t的内容是() A. This is th String B. This is the C. String D. String This is the ...
33. 当浏览器终止Applet时,()函数被调用。 A. init( ) B. start( ) C. stop( ) D. destroy( ) ...
20. 如果一个类中定义了如下3个方法,则() public void print(int i) public void print(float f) public void print(String s) A. 正确 B. 错误,方法名不能相同 C. 错误,如果方法名相同,参数名也应该相同 D. 错误,重载的方法的参数不能为类 ...
31. 在Applet中进行图像显示时,首先使用Applet类的getImage()方法装载一个Image对象,然后使用()类的drawImage()方法将该对象画到屏幕上 A. applet B. image C. frame D. Graphics ...
25. 从网络中一台不同类型的计算机上读取数据,需要用明确的字符编码方式来构造(),否则会引起错误。 A. InputStreamReader B. InputStreamWriter C. OutputStreamReader D. OutputStreamWriter ...
18. ()是组成对象的元素。 A. 复合数据类型 B. 类 C. 对象 D. 成员 E. 引用 ...
12. int elements[]=new int[6];elements=new int[10]; 第二句话的意义是() A. 将数组elements的大小扩大到10 B. 将数组elements的大小扩大10 C. 声明一个新的大小为10的数组 D. 声明一个新的大小为16的数组 ...