站内搜索
1z0-851 问题列表
问题
多选题Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100?()An = 100;Bi.setX( 100 );Co.getY().setX( 100 );Di = new Inner(); i.setX( 100 );Eo.setY( i ); i = new Inner(); i.setX( 100 );Fi = new Inner(); i.setX( 100 ); o.setY( i );
问题
单选题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?()A
java.util.QueueB
java.util.ArrayListC
java.util.LinearListD
java.util.LinkedList
问题
单选题Given: What is the output?()A
42B
420C
462D
42042E
Compilation fails.F
An exception is thrown at runtime.
问题
单选题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?()A
java.util.QueueB
java.util.ArrayListC
java.util.LinearListD
java.util.LinkedList
问题
单选题Given: What is the result?()A
HelloB
Hello WorldC
Compilation fails.D
Hello World 5E
The code runs with no output.F
An exception is thrown at runtime.
问题
单选题Given that t1 is a reference to a live thread, which is true?()A
The Thread.sleep() method can take t1 as an argument.B
The Object.notify() method can take t1 as an argument.C
The Thread.yield() method can take t1 as an argument.D
The Thread.setPriority() method can take t1 as an argument.E
The Object.notify() method arbitrarily chooses which thread to notify.
问题
单选题Given that t1 is a reference to a live thread, which is true?()A
The Thread.sleep() method can take t1 as an argument.B
The Object.notify() method can take t1 as an argument.C
The Thread.yield() method can take t1 as an argument.D
The Thread.setPriority() method can take t1 as an argument.E
The Object.notify() method arbitrarily chooses which thread to notify.
问题
单选题Given: What is the result?()A
1B
2C
12D
Compilation fails.E
No output is produced.F
An exception is thrown at runtime.
问题
单选题Given: What is the result?()A
HelloB
Hello WorldC
Compilation fails.D
Hello World 5E
The code runs with no output.F
An exception is thrown at runtime.
问题
多选题Given: Which two code fragments, inserted independently at line 13, will compile?()Asuper(name, baseSalary);Bthis.commission = commission;Csuper();this.commission = commission;Dthis.commission = commission;super();Esuper(name, baseSalary);this.commission = commission;Fthis.commission = commission;super(name, baseSalary);Gsuper(name, baseSalary, commission);
问题
单选题Click the Exhibit button. What is the output if the main( ) method is run?()A
4B
5C
8D
9E
Compilation fails.F
An exception is thrown at runtime.G
It is impossible to determine for certain.
问题
单选题Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()A
Compilation will succeed for all classes and interfaces.B
Compilation of class C will fail because of an error in line 2.C
Compilation of class C will fail because of an error in line 6.D
Compilation of class AImpl will fail because of an error in line 2.
问题
单选题Given: When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()A
Line 5B
Line 6C
Line 7D
Line 8E
Line 9F
Line 10
问题
单选题Given: Which regular expression, inserted at line 12, correctly splits test into "Test A", "Test B", and "Test C"?()A
String regex="";B
String regex=" .";C
String regex=".*";D
String regex="//s";E
String regex="//.//s*";F
String regex="//w[/.]+";