搜题
已收录475621道考试试题
丨 最后更新:2026-01-22”“ 搜索结果
为您找到相关结果约475621个
运用下列哪个命令能够获取JVM的内存映像
查看更多
int i = 3;
String result = new String();
switch (i) {
case 1:
result = result + "him ";
case 2:
result = result + "her ";
case 3:
result = result + "it ";
default:
result = result + "me ";
}
System.out.println(result);
请给出最终输出内容。
查看更多
以下哪种方式实现的单例是线程安全的
查看更多
HashMap的数据结构是怎样的?
查看更多
以下哪个不能用来处理线程安全
查看更多
运行代码,结果正确的是:
Boolean flag = false;
if(flag = true){
System.out.println("true");
}else{
System.out.println("false");
}
查看更多
如果我需要使用一个类的子类的实例,但我又不想与该类的子类发生直接联系,那我应该使用以下哪种
查看更多
以下代码段执行后的输出结果为
public class Test {
public static void main(String args) {
System.out.println(test());
}
private static int test() {
int temp = 1;
try {
System.out.println(temp);
return ++temp;
} catch (Exception e) {
System.out.println(temp);
return ++temp;
} finally {
++temp;
System.out.println(temp);
}
}
}
查看更多
CMS垃圾回收器在那些阶段是没用用户线程参与的
查看更多
如果开发一款打扑克的游戏,现在要对选手拿到的牌进行排序,请问一下哪种排序方式最合适?
查看更多

Andriod下载
iPhone下载