单选题 A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?()
java.util.Queue
java.util.ArrayList
java.util.LinearList
java.util.LinkedList
单选题 Given classes defined in two different files: What is required at line 5 in class SomeApp to use the process method of BitUtils?()
process(bytes);
BitUtils.process(bytes);
util.BitUtils.process(bytes);
SomeApp cannot use methods in BitUtils.
import util.BitUtils.*; process(bytes);
单选题 Given a method that must ensure that its parameter is not null: What, inserted at line 12, is the appropriate way to handle a null value?()
assert value == null;
assert value != null, "value is null";
if (value == null) { throw new AssertionException("value is null"); }
if (value == null) { throw new IllegalArgumentException("value is null"); }
单选题 Given: What is the result?()
3,2,1
1,2,3
Compilation fails.
The code runs with no output.
An exception is thrown at runtime.
单选题 Given: What is the result?()
12
The code runs with no output.
An exception is thrown at runtime.
Compilation fails because of an error in line 21.
Compilation fails because of an error in line 22.
Compilation fails because of an error in line 31.
单选题 Given: Which statement is true?()
420 is the output.
An exception is thrown at runtime.
All constructors must be declared public.
Constructors CANNOT use the private modifier.
Constructors CANNOT use the protected modifier.
单选题 Given: What is the result?()
13
134
1234
2134
单选题 Given that the current directory is empty, and that the user has read and write privileges to the currentdirectory, and the following: Which statement is true?()
Compilation fails.
Nothing is added to the file system.
Only a new file is created on the file system.
Only a new directory is created on the file system.
Both a new file and a new directory are created on the file system.
单选题 Given: What is the result?()
The value "4" is printed at the command line.
Compilation fails because of an error in line 5.
Compilation fails because of an error in line 9.
A NullPointerException occurs at runtime.
A NumberFormatException occurs at runtime.
An IllegalStateException occurs at runtime.
多选题 Given: Which two methods, inserted individually, correctly complete the Three class?()
public void foo() {}
public int foo() { return 3; }
public Two foo() { return this; }
public One foo() { return this; }
public Object foo() { return this; }
在任何情况下,伸缩调节器处轨距的要求为()。
人类有两套影响学习的记忆系统:陈述性记忆和程序记忆。陈述性记忆是对事实或者词汇之类基本认识的记忆。而程序记忆,就是一个人“不劳而获”的记忆。程序记忆是人养成习惯和习得技巧的方式,比如骑自行车。在很多时候,这种学习是无意识的。人们用早期发育的程序记忆系统来学习复杂的东西,比如语法规则。帮助人们学习词汇的陈述性记忆系统,则需要更多时问完成发育。儿童拥有程序记忆系统,并且不受陈述性记忆系统的干扰。由此可以推出()。
宋末元初四大家
公平目标的实现可以通过()实现。
荟萃分析
人员安全疏散分析的性能判定标准为:可用疏散时间(A.SET)必须()必需疏散时间(RSET)。
预防HIV感染的主要措施应当为( )
简述我国混合型债券市场的发展状况。
造成水中某些污染物在生物体内含量大大高于水体中的浓度的生物放大作用是指()
输血的适应证中,不包括()