1Z0-853 题目列表
单选题Given the command line java Pass2 and: What is the result? ()A  doStuff x = 6 main x = 6B  Compilation fails.C  doStuff x = 6 main x = 7D  An exception is thrown at runtime.E  doStuff x = 7 main x = 6F  doStuff x = 7 main x = 7

多选题Given:   11. // insert code here   12. private N min, max;   13. public N getMin() { return min; }   14. public N getMax() { return max; }   15. public void add(N added) {   16. if (min == null || added.doubleValue()  max.doubleValue())  19. max = added;   20. }   21. }   Which two, inserted at line 11, will allow the code to compile?()AABBCCDDEEFF

多选题Given:   10. class One {   11. void foo() { }   12. }   13. class Two extends One {   14. //insert method here   15. }   Which three methods, inserted individually at line 14, will correctly complete class Two?()Apublic void foo() { /* more code here */ }Bprivate void foo() { /* more code here */ }Cprotected void foo() { /* more code here */ }Dint foo() { /* more code here */ }Evoid foo() { /* more code here */ }

单选题Given:   12. System.out.format("Pi is approximately %d.", Math.PI);   What is the result?()A An exception is thrown at runtime.B Pi is approximately 3.C Pi is approximately 3.141593.D Compilation fails.

单选题Given: What is the result?()A AB BC CD DE E

单选题Given: What is the result?()A  An exception is thrown at runtime.B  int LongC  Compilation fails.D  Short Long

单选题Click the Exhibit button.   What is the output of the program shown in the exhibit? ()A  300-300-100-100-100B  300-300-300-100-100C  300-300-300-300-100D  300-100-100-100-100

多选题Click the Exhibit button.   Given: Which two statements are true if a NullPointerException is thrown on line 3 of class C?()AThe application will crash.BThe code on line 29 will be executed.CThe code on line 5 of class A will execute.DThe exception will be propagated back to line 27.EThe code on line 5 of class B will execute.

多选题Given: Which five methods, inserted independently at line 5, will compile?()Aprotected int blipvert(long x) { return 0; }Bprotected long blipvert(int x) { return 0; }Cprivate int blipvert(long x) { return 0; }Dprivate int blipvert(int x) { return 0; }Epublic int blipvert(int x) { return 0; }Fprotected long blipvert(long x) { return 0; }Gprotected long blipvert(int x, int y) { return 0; }

单选题Given:   11. static class A {   12. void process() throws Exception { throw new Exception(); }   13. }   14. static class B extends A {   15. void process() { System.out.println("B "); }   16. }   17. public static void main(String[] args) {   18. A a = new B();   19. a.process();   20. }   What is the result? ()A Compilation fails because of an error in line 19.B An exception is thrown at runtime.C BD Compilation fails because of an error in line 18.E Compilation fails because of an error in line 15. F The code runs with no output.

单选题Given: What is the result of calling search with a valid List implementation? ()A  0B  The result is undefined.C  aD  2E  1F  cG  b

单选题Given: What is the result? ()A  A new Item object is created with the preferred value in the id attribute.B  The attribute id in the Item object is modified to the new value.C  Compilation fails.D  An exception is thrown at runtime.E  The attribute id in the Item object remains unchanged.

单选题Given:  Which code, inserted at line 15, creates an instance of the Point class defined in Line?()A  Line l = new Line() ; l.Point p = new l.Point();B  Line.Point p = new Line.Point();C  The Point class cannot be instatiated at line 15.D  Point p = new Point();

多选题A JavaBeans component has the following field:   11. private boolean enabled;   Which two pairs of method declarations follow the JavaBeans standard for accessing this field?()AABBCCDD

单选题Given:  Which code, inserted at line 15, creates an instance of the Point class defined in Line?()A  Line l = new Line() ; l.Point p = new l.Point();B  Line.Point p = new Line.Point();C  The Point class cannot be instatiated at line 15.D  Point p = new Point();