[在线考核] ??下列 关键字通常用来给对象进行加锁,该标记使得对对 日期:2022-11-03 22:28:22 点击:131 好评:0
13.??下列 关键字通常用来给对象进行加锁,该标记使得对对象的访问是排他的。 A. transient B. serialize C. synchronized D. static ...
[在线考核] ??class A 日期:2022-11-03 22:27:04 点击:65 好评:0
8.??class A {public int getNumber(int a){return a+1;}} class B extends A {public int getNumber(int a, char c){return a+2;} public static void main(String[] args) {B b=new B();System.out.println(b.getNumber(0));} } what is the re...
[在线考核] ??有数组定义:int a[]={0,1,2,3,4,5,6};,则a数组的数组元素个 日期:2022-11-03 22:25:45 点击:100 好评:0
3.??有数组定义:int a[]={0,1,2,3,4,5,6};,则a数组的数组元素个数为 A. a.length() B. a.length()+1 C. a.length D. a.length+1 ...
[在线考核] ??( )如果p是父类Parent的对象,而c是子类Child的对象,则语 日期:2022-11-03 22:24:24 点击:165 好评:0
3.??( )如果p是父类Parent的对象,而c是子类Child的对象,则语句c = p是正确的。 A. 错误 B. 正确 ...
[在线考核] ??如果一个Java源程序文件中定义有4个类,则使用Sun公司的SDK编 日期:2022-11-03 22:23:04 点击:149 好评:0
18.??如果一个Java源程序文件中定义有4个类,则使用Sun公司的SDK编译器javac.exe编译该源程序文件,将产生 个文件名与类名相同而扩展名为.class的字节码文件。 A. 1 B. 2 C. 3 D. 4 ...
[在线考核] ??在Java中, 语句作为异常处理的统一出口。 日期:2022-11-03 22:21:47 点击:96 好评:0
12.??在Java中, 语句作为异常处理的统一出口。 A. throw B. try C. finally D. catch ...
[在线考核] ??Give the following java source fragement: 日期:2022-11-03 22:20:25 点击:68 好评:0
7.??Give the following java source fragement: //point x public class Interesting{//do something } Which statement is correctly Java syntax at point x? A. import java.awt.*; B. package mypackage C. static int PI=3.14 D....
[在线考核] ??Applet运行时,被浏览器或appletviewer调用的第一个方法是 日期:2022-11-03 22:19:07 点击:94 好评:0
2.??Applet运行时,被浏览器或appletviewer调用的第一个方法是 A. paint() B. init() C. start() D. destroy() ...
[在线考核] ??( )用“+”可以实现字符串的拼接,用“-”可以从一个字符 日期:2022-11-03 22:17:48 点击:71 好评:0
2.??( )用“+”可以实现字符串的拼接,用“-”可以从一个字符串中去除一个字符子串。 A. 错误 B. 正确 ...
[在线考核] ??下列关于方法形参的叙述中, 是正确的。 日期:2022-11-03 22:16:29 点击:51 好评:0
17.??下列关于方法形参的叙述中, 是正确的。 A. 必须有多个 B. 至少有一个 C. 可以没有 D. 只能是简单变量 ...