Oracle 1Z0-853 (Java Standard Edition 5 Programmer Certified Professional Exam) 시험을 등록했는데 마땅한 공부자료가 없어 고민중이시라면 Pass4Test의 Oracle 1Z0-853 (Java Standard Edition 5 Programmer Certified Professional Exam) 덤프를 추천해드립니다. Pass4Test의 Oracle 1Z0-853 (J ava Standard Edition 5 Programmer Certified Professional Exam) 덤프는 거의 모든 시험문제를 커버하고 있어 시험패스율이 100%입니다. Pass4Test제품을 선택하시면 어려운 시험공부도 한결 가벼워집니다.
NO.1 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? (Choose three.)
A. public void foo() { /* more code here */ }
B. private void foo() { /* more code here */ }
C. protected void foo() { /* more code here */ }
D. int foo() { /* more code here */ }
E. void foo() { /* more code here */ }
Answer: A,C,E
NO.2 }
NO.3 // insert code here
NO.4 }
NO.5 DRAG DROP
Click the Task button.
Answer:
NO.6 int x = 6;
NO.7 System.out.print(" main x = " + x);
NO.8 Which two code fragments correctly create and initialize a static array of int elements.? (Choose two.)
A. static final int[] a = { 100,200 };
B. static final int[] a;
static { a=new int[2]; a[0]=100; a[1]=200; }
C. static final int[] a;
static void init() { a = new int[3]; a[0]=100; a[1]=200; }
D. static final int[] a = new int[2]{ 100,200 };
Answer: A,B
NO.9 void doStuff(int x) {
NO.10 Given:
11. class A {
12. public void process() { System.out.print("A,"); }
13. class B extends A {
14. public void process() throws IOException {
15. super.process();
16. System.out.print("B,");
17. throw new IOException();
18. }
19. public static void main(String[] args) {
20. try { new B().process(); }
21. catch (IOException e) { System.out.println("Exception"); }}
What is the result?
A. Compilation fails because of an error in line 14.
B. Exception
C. A,B,Exception
D. Compilation fails because of an error in line 20.
E. A NullPointerException is thrown at runtime.
Answer: A
NO.11 Given:
10. class Line {
NO.12 Given:
11. public class Yikes {
12.
13. public static void go(Long n) {System.out.println("Long ");}
14. public static void go(Short n) {System.out.println("Short ");}
15. public static void go(int n) {System.out.println("int ");}
16. public static void main(String [] args) {
17. short y = 6;
18. long z = 7;
19. go(y);
20. go(z);
21. }
22. }
What is the result?
A. An exception is thrown at runtime.
B. int Long
C. Compilation fails.
D. Short Long
Answer: B
NO.13 Given:
12. NumberFormat nf = NumberFormat.getInstance();
13. nf.setMaximumFractionDigits(4);
14. nf.setMinimumFractionDigits(2);
15. String a = nf.format(3.1415926);
16. String b = nf.format(2);
Which two statements are true about the result if the default locale is Locale.US? (Choose two.)
A. The value of b is 2.00.
B. The value of a is 3.141.
C. The value of a is 3.14.
D. The value of b is 2.0000.
E. The value of a is 3.1415.
F. The value of a is 3.1416.
G. The value of b is 2.
Answer: A,F
NO.14 public static class Point {}
NO.15
NO.16 Given:
11. public class ItemTest {
12. private final int id;
13. public ItemTest(int id) { this.id = id; }
14. public void updateId(int newId) { id = newId; }
15.
16. public static void main(String[] args) {
17. ItemTest fa = new ItemTest(42);
18. fa.updateId(69);
19. System.out.println(fa.id);
20. }
21. }
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.
Answer: C
Oracle 1Z0-853 (Java Standard Edition 5 Programmer Certified Professional Exam) 덤프공부자료
Posted 2013/8/9 3:35:32 | Category: 미분류 | Tag: