当前分类: 1z0-851
问题:单选题Given: What is the result?()A 1B 2C 12D Compilation fails.E No output is produced.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....
问题:单选题Given classes defined in two different files: What is required at line 5 in class SomeApp to use the process method of BitUtils?()A process(bytes);B BitUtils.process(bytes);C app.BitUtils.process(bytes);D util.BitUtils.process(bytes);E import uti...
问题:单选题Given: What is the result when method testIfA is invoked?()A TrueB Not trueC An exception is thrown at runtime.D Compilation fails because of an error at line 12.E Compilation fails because of an error at line 19....
问题:多选题Given: Which three are valid?()Ap0 = p1;Bp1 = p2;Cp2 = p4;Dp2 = (ClassC)p1;Ep1 = (ClassB)p3;Fp2 = (ClassC)p4;...
问题:多选题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...
问题:多选题Which two statements are true?()AIt is possible for more than two threads to deadlock at once.BThe JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.CDeadlocked threads release once their sleep() method's sleep du...
问题:单选题Given: What is the output?()A 42B 420C 462D 42042E Compilation fails.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.commis...
问题:单选题Given: What is the result?()A testB ExceptionC Compilation fails.D NullPointerException...
问题:单选题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.setPriorit...
问题:单选题Given: What is the result?()A 2B 24C 234D 246E 2346F Compilation fails....
问题:单选题Given classes defined in two different files:What is required at line 5 in class SomeApp to use the process method of BitUtils?()A process(bytes);B BitUtils.process(bytes);C util.BitUtils.process(bytes);D SomeApp cannot use methods in BitUtils.E i...
问题:单选题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....
问题:单选题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 ...
问题:多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()AThe JAR fi...