单选题 Given: What is the result?()
Compilation fails.
An exception is thrown at runtime.
doStuff x = 6 main x = 6
doStuff x = 5 main x = 5
doStuff x = 5 main x = 6
单选题 Click the Exhibit button. What is the result?()
The code will deadlock.
The code may run with no output.
An exception is thrown at runtime.
The code may run with output "0 6".
The code may run with output "2 0 6 4".
The code may run with output "0 2 4 6".
单选题 Given: What is the result?()
Compilation fails.
An exception is thrown at runtime.
The code executes normally and prints "foo".
The code executes normally, but nothing is printed.
多选题 Given: Which two changes, taken together, would guarantee the output: 1, 2, 3, 4, 5, ?()
move the line 12 print statement into the foo() method
change line 7 to public synchronized void go() {
change the variable declaration on line 2 to private volatile int x;
wrap the code inside the foo() method with a synchronized( this ) block
多选题 Which three will compile and run without exception?()
private synchronized Object o;
void go() {synchronized() { /* code here */ }
public synchronized void go() { /* code here */ }
private synchronized(this) void go() { /* code here */ }
void go() {synchronized(Object.class) { /* code here */ }
void go() {Object o = new Object();synchronized(o) { /* code here */ }
多选题 Given: Which three methods, inserted individually at line 14, will correctly complete class Two?()
int foo() { /* more code here */ }
void foo() { /* more code here */ }
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
单选题 Given: What is the result?()
harrier
shepherd
retriever
Compilation fails.
retriever harrier
多选题 Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100?()
n = 100;
i.setX( 100 );
o.getY().setX( 100 );
i = new Inner(); i.setX( 100 );
o.setY( i ); i = new Inner(); i.setX( 100 );
i = new Inner(); i.setX( 100 ); o.setY( i );
单选题 Given: What is the result?()
true true
false true
true false
false false
单选题 Given: Which method will complete this class?()
public int compareTo(Object o){/*more code here*/}
public int compareTo(Score other){/*more code here*/}
public int compare(Score s1,Score s2){/*more code here*/}
public int compare(Object o1,Object o2){/*more code here*/}
在任何情况下,伸缩调节器处轨距的要求为()。
人类有两套影响学习的记忆系统:陈述性记忆和程序记忆。陈述性记忆是对事实或者词汇之类基本认识的记忆。而程序记忆,就是一个人“不劳而获”的记忆。程序记忆是人养成习惯和习得技巧的方式,比如骑自行车。在很多时候,这种学习是无意识的。人们用早期发育的程序记忆系统来学习复杂的东西,比如语法规则。帮助人们学习词汇的陈述性记忆系统,则需要更多时问完成发育。儿童拥有程序记忆系统,并且不受陈述性记忆系统的干扰。由此可以推出()。
宋末元初四大家
公平目标的实现可以通过()实现。
荟萃分析
人员安全疏散分析的性能判定标准为:可用疏散时间(A.SET)必须()必需疏散时间(RSET)。
预防HIV感染的主要措施应当为( )
简述我国混合型债券市场的发展状况。
造成水中某些污染物在生物体内含量大大高于水体中的浓度的生物放大作用是指()
输血的适应证中,不包括()