1z0-851 题目列表
单选题Given: What is the result?()A 2B 24C 234D 246E 2346F Compilation fails.

多选题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?()Ajava.util.QueueBjava.util.ArrayListCjava.util.LinearListDjava.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?()Ajava.util.QueueBjava.util.ArrayListCjava.util.LinearListDjava.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?()AThe Thread.sleep() method can take t1 as an argument.BThe Object.notify() method can take t1 as an argument.CThe Thread.yield() method can take t1 as an argument.DThe Thread.setPriority() method can take t1 as an argument.EThe Object.notify() method arbitrarily chooses which thread to notify.

单选题Given that t1 is a reference to a live thread, which is true?()AThe Thread.sleep() method can take t1 as an argument.BThe Object.notify() method can take t1 as an argument.CThe Thread.yield() method can take t1 as an argument.DThe Thread.setPriority() method can take t1 as an argument.EThe 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[/.]+";