수많은 Oracle 1Z0-853 (Java Standard Edition 5 Programmer Certified Professional Exam) 시험공부자료중에서 Pass4Test의 Oracle 1Z0-853 (Java Standard Edition 5 Programmer Certified Professi onal Exam) 덤프가 가장 출중한 원인은 무엇일가요? Pass4Test의 Oracle 1Z0-853 (Java Standard Edition 5 Programmer Certified Professional Exam) 덤프는 실제시험문제의 출제방향을 연구하여 IT전문가로 되어있는 덤프제작팀이 만든 최신버전 덤프입니다.
NO.1 Given:
10. class Line {
NO.2 Click the Exhibit button.
Given:
25. try {
26. A a = new A();
27. a.method1();
28. } catch (Exception e) {
29. System.out.print("an error occurred");
30. }
Which two statements are true if a NullPointerException is thrown on line 3 of class C? (Choose two.)
A. The application will crash.
B. The code on line 29 will be executed.
C. The code on line 5 of class A will execute.
D. The exception will be propagated back to line 27.
E. The code on line 5 of class B will execute.
Answer: B,D
NO.3 class Triangle {
NO.4 }
NO.5 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.6 Pass2 p = new Pass2();
NO.7 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.8 System.out.print(" main x = " + x);
NO.9 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.10 Given:
11. public static void main(String[] args) {
12. Object obj = new int[] { 1, 2, 3 };
13. int[] someArray = (int[])obj;
14. for (int i : someArray) System.out.print(i + " ");
15. }
What is the result?
A. Compilation fails because of an error in line 13.
B. A ClassCastException is thrown at runtime.
C. 1 2 3
D. Compilation fails because of an error in line 14.
E. Compilation fails because of an error in line 12.
Answer: C