显示标签为“1Z0-853”的博文。显示所有博文
显示标签为“1Z0-853”的博文。显示所有博文

2014年1月27日星期一

Oracleの1Z0-853の試験問題集が登場します

IT 職員のそれぞれは昇進または高給のために頑張っています。これも現代社会が圧力に満ちている一つの反映です。そのためにOracleの1Z0-853認定試験に受かる必要があります。適当なトレーニング資料を選んだらこの試験はそんなに難しくなくなります。IT-Passports.comのOracleの1Z0-853試験トレーニング資料は最高のトレーニング資料で、あなたの全てのニーズを満たすことができますから、速く行動しましょう。

IT業界の中でたくさんの野心的な専門家がいって、IT業界の中でより一層頂上まで一歩更に近く立ちたくてOracleの1Z0-853試験に参加して認可を得たくて、Oracle の1Z0-853試験が難度の高いので合格率も比較的低いです。Oracleの1Z0-853試験を申し込むのは賢明な選択で今のは競争の激しいIT業界では、絶えず自分を高めるべきです。しかし多くの選択肢があるので君はきっと悩んでいましょう。

試験番号:1Z0-853問題集
試験科目:Oracle 「Java Standard Edition 5 Programmer Certified Professional Exam」
問題と解答:全362問

IT-Passports.comはIT認定試験の1Z0-853問題集を提供して皆さんを助けるウエブサイトです。IT-Passports.comは先輩の経験を生かして暦年の試験の材料を編集することを通して、最高の1Z0-853問題集を作成しました。問題集に含まれているものは実際試験の問題を全部カバーすることができますから、あなたが一回で成功することを保証できます。

君はまだOracleの1Z0-853認証試験を通じての大きい難度が悩んでいますか? 君はまだOracle 1Z0-853認証試験に合格するために寝食を忘れて頑張って復習しますか? 早くてOracle 1Z0-853認証試験を通りたいですか?IT-Passports.comを選択しましょう!IT-Passports.comはきみのIT夢に向かって力になりますよ。IT-Passports.comは多種なIT認証試験を受ける方を正確な資料を提供者でございます。弊社の無料なサンプルを遠慮なくダウンロードしてください。

IT-Passports.comあなたに 最高のOracleの1Z0-853試験問題集を提供して差し上げます。あなたを成功への道に引率します。IT-Passports.comのOracleの1Z0-853試験トレーニング資料は試験の準備をしているあなたにヘルプを与えます。当社の資料はあなたがIT専門家になるように特別に受験生の皆さんのために作成したものです。IT-Passports.comのOracleの1Z0-853試験トレーニング資料はあなたに最も適用して、あなたのニーズを満たす資料です。はやくIT-Passports.comのサイトを登録してくだい。きっと棚ぼたがありますよ。

われわれは今の競争の激しいIT社会ではくつかIT関連認定証明書が必要だとよくわかります。IT専門知識をテストしているOracleの1Z0-853認定試験は1つのとても重要な認証試験でございます。しかしこの試験は難しさがあって、合格率がずっと低いです。でもIT-Passports.comの最新問題集がこの問題を解決できますよ。1Z0-853認定試験の真実問題と模擬練習問題があって、十分に試験に合格させることができます。

IT-Passports.comがIT認証試験対策ツールのサイトで開発した問題集はとてもIT認証試験の受験生に適用します。IT-Passports.comが提供した研修ツールが対応性的なので君の貴重な時間とエネルギーを節約できます。

購入前にお試し,私たちの試験の質問と回答のいずれかの無料サンプルをダウンロード:http://www.it-passports.com/1Z0-853.html

NO.1 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

Oracle問題集   1Z0-853   1Z0-853認定資格   1Z0-853過去問   1Z0-853

NO.2 int x = 6;

NO.3 }
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();
Answer: B

Oracle過去問   1Z0-853練習問題   1Z0-853   1Z0-853認証試験   1Z0-853認定証   1Z0-853過去問
11.Click the Exhibit button.
What is the result?
A. The code will deadlock.
B. The code may run with output "2 0 6 4".
C. The code may run with no output.
D. The code may run with output "0 6".
E. An exception is thrown at runtime.
F. The code may run with output "0 2 4 6".
Answer: F

Oracle   1Z0-853   1Z0-853
12.Given:
1. public class Blip {
2. protected int blipvert(int x) { return 0; }
3. }
4. class Vert extends Blip {
5. // insert code here
6. }
Which five methods, inserted independently at line 5, will compile? (Choose five.)
A. protected int blipvert(long x) { return 0; }
B. protected long blipvert(int x) { return 0; }
C. private int blipvert(long x) { return 0; }
D. private int blipvert(int x) { return 0; }
E. public int blipvert(int x) { return 0; }
F. protected long blipvert(long x) { return 0; }
G. protected long blipvert(int x, int y) { return 0; }
Answer: A,C,E,F,G

Oracle認証試験   1Z0-853   1Z0-853   1Z0-853問題集
13.DRAG DROP
Click the Task button.
Answer:
14.Given:
12. System.out.format("Pi is approximately %d.", Math.PI);
What is the result?
A. An exception is thrown at runtime.
B. Compilation fails.
C. Pi is approximately 3.
D. Pi is approximately 3.141593.
Answer: A

Oracle   1Z0-853練習問題   1Z0-853参考書   1Z0-853   1Z0-853問題集
15.Given the command line java Pass2 and:
15. public class Pass2 {
16. public void main(String [] args) {

NO.4 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

Oracle   1Z0-853   1Z0-853   1Z0-853問題集

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

Oracle   1Z0-853過去問   1Z0-853問題集

NO.6 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   1Z0-853練習問題   1Z0-853   1Z0-853練習問題

NO.7 Given:
20. public class CreditCard {
21.
22. private String cardID;
23. private Integer limit;
24. public String ownerName;
25.
26. public void setCardInformation(String cardID,
27. String ownerName,
28. Integer limit) {
29. this.cardID = cardID;
30. this.ownerName = ownerName;
31. this.limit = limit;
32. }
33. }
Which statement is true?
A. The cardID and limit variables break polymorphism.
B. The code demonstrates polymorphism.
C. The ownerName variable breaks encapsulation.
D. The setCardInformation method breaks encapsulation.
E. The class is fully encapsulated.
Answer: C

Oracle認定証   1Z0-853練習問題   1Z0-853   1Z0-853問題集

NO.8 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

Oracle認定証   1Z0-853参考書   1Z0-853練習問題

NO.9 }

NO.10 Given:
10. class Line {

NO.11 class Triangle {

NO.12 p.doStuff(x);

NO.13

NO.14 }

NO.15 void doStuff(int x) {

NO.16 public static class Point {}

NO.17 }

NO.18 // insert code here

NO.19

NO.20 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

Oracle認定資格   1Z0-853問題集   1Z0-853練習問題   1Z0-853   1Z0-853過去問

NO.21 Pass2 p = new Pass2();

NO.22 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() < min.doubleValue()) 17. min = added;
18. if (max == null || added.doubleValue() > max.doubleValue()) 19. max = added;
20. }
21. }
Which two, inserted at line 11, will allow the code to compile? (Choose two.)
A. public class MinMax<? extends Object> {
B. public class MinMax<N extends Integer> {
C. public class MinMax<N extends Object> {
D. public class MinMax<N extends Number> {
E. public class MinMax<?> {
F. public class MinMax<? extends Number> {
Answer: B,D

Oracle参考書   1Z0-853   1Z0-853   1Z0-853過去問   1Z0-853認定資格

NO.23 Given:
10. interface Jumper { public void jump(); } ...
20. class Animal {} ...
30. class Dog extends Animal {
31. Tail tail;
32. }
...
40. class Beagle extends Dog implements Jumper{
41. public void jump() {} 42. }
...
50. class Cat implements Jumper{
51. public void jump() {}
52. }.Which three are true? (Choose three.)
A. Cat is-a Jumper
B. Cat is-a Animal
C. Dog is-a Jumper
D. Dog is-a Animal
E. Beagle has-a Jumper
F. Cat has-a Animal
G. Beagle has-a Tail
Answer: A,D,G

Oracle練習問題   1Z0-853   1Z0-853   1Z0-853認証試験

NO.24 DRAG DROP
Click the Task button.
Answer:

NO.25 System.out.print(" doStuff x = " + x++);

NO.26 System.out.print(" main x = " + x);

NO.27 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

Oracle   1Z0-853   1Z0-853   1Z0-853

NO.28 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

Oracle練習問題   1Z0-853認証試験   1Z0-853

NO.29 }
What is the result?
A. doStuff x = 6 main x = 6
B. Compilation fails.
C. doStuff x = 6 main x = 7
D. An exception is thrown at runtime.
E. doStuff x = 7 main x = 6
F. doStuff x = 7 main x = 7
Answer: D

Oracle認定資格   1Z0-853参考書   1Z0-853
16.Given:
13. public static void search(List<String> list) {
14. list.clear();
15. list.add("b");
16. list.add("a");
17. list.add("c");
18. System.out.println(Collections.binarySearch(list, "a"));
19. }
What is the result of calling search with a valid List implementation?
A. 0
B. The result is undefined.
C. a
D. 2
E. 1
F. c
G. b
Answer: B

Oracle認定資格   1Z0-853認定証   1Z0-853参考書   1Z0-853   1Z0-853
17.Click the Exhibit button.
Given: ClassA a = new ClassA();
a.methodA();
What is the result?
A. The code runs with no output.
B. Compilation fails.
C. An exception is thrown at runtime.
D. ClassC is displayed.
Answer: C

Oracle   1Z0-853認証試験   1Z0-853
18.Given:
11. public static void test(String str) {
12. int check = 4;
13. if (check = str.length()) {
14. System.out.print(str.charAt(check -= 1) +", ");
15. } else {
16. System.out.print(str.charAt(0) + ", ");
17. }
18. }
and the invocation:
21. test("four");
22. test("tee");
23. test("to");
What is the result?
A. An exception is thrown at runtime.
B. r, e, o,
C. Compilation fails.
D. r, t, t,
Answer: C

Oracle   1Z0-853   1Z0-853認証試験
19.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? (Choose
two.)
A. public boolean setEnabled( boolean enabled )
public boolean getEnabled()
B. public void setEnabled( boolean enabled )
public void isEnabled()
C. public void setEnabled( boolean enabled )
public boolean getEnabled()
D. public void setEnabled( boolean enabled )
public boolean isEnabled()
Answer: C,D

Oracle参考書   1Z0-853   1Z0-853   1Z0-853
20.Given:
11. public void genNumbers() {
12. ArrayList numbers = new ArrayList();
13. for (int i=0; i<10; i++) {
14. int value = i * ((int) Math.random());
15. Integer intObj = new Integer(value);
16. numbers.add(intObj);
17. }
18. System.out.println(numbers);
19. }
Which line of code marks the earliest point that an object referenced by intObj becomes a
candidate for garbage collection?
A. Line 19
B. The object is NOT a candidate for garbage collection.
C. Line 17
D. Line 16
E. Line 18
Answer: A

Oracle   1Z0-853過去問   1Z0-853   1Z0-853認証試験
21.Given:
11. String test = "This is a test";
12. String[] tokens = test.split("\s");
13. System.out.println(tokens.length);
What is the result?
A. An exception is thrown at runtime.
B. 1
C. 4
D. Compilation fails.
E. 0
Answer: D

Oracle   1Z0-853   1Z0-853問題集   1Z0-853問題集
22.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.
Answer: A

Oracle参考書   1Z0-853   1Z0-853   1Z0-853
23.DRAG DROP
Click the Task button.
Answer:
24.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. B
D. 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.
Answer: A

Oracle認定資格   1Z0-853練習問題   1Z0-853   1Z0-853参考書   1Z0-853認定試験   1Z0-853
25.Given:
1. interface A { public void aMethod(); }
2. interface B { public void bMethod(); }
3. interface C extends A,B { public void cMethod(); }
4. class D implements B {
5. public void bMethod(){}
6. }
7. class E extends D implements C {
8. public void aMethod(){}
9. public void bMethod(){}
10. public void cMethod(){}
11. }
What is the result?
A. If you define D e = new E(), then e.bMethod() invokes the version of bMethod() defined in Line 5.
B. If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 5.
C. Compilation fails because of an error in line 9.
D. If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.
E. Compilation fails because of an error in line 3.
F. Compilation fails because of an error in line 7.
Answer: D

Oracle   1Z0-853過去問   1Z0-853   1Z0-853   1Z0-853   1Z0-853認証試験
26.Click the Exhibit button.
What is the output of the program shown in the exhibit?
A. 300-300-100-100-100
B. 300-300-300-100-100
C. 300-300-300-300-100
D. 300-100-100-100-100
Answer: A

Oracle認証試験   1Z0-853   1Z0-853問題集   1Z0-853   1Z0-853参考書

NO.30 Click the Exhibit button.
Given this code from Class B:
25. A a1 = new A();
26. A a2 = new A();
27. A a3 = new A();
28. System.out.println(A.getInstanceCount());
What is the result?
A. Compilation of class A fails.
B. Line 28 prints the value 3 to System.out.
C. Line 28 prints the value 1 to System.out.
D. Compilation fails because of an error on line 28.
E. A runtime error occurs when line 25 executes.
Answer: A

Oracle   1Z0-853認定証   1Z0-853   1Z0-853認定資格   1Z0-853過去問

Oracle 1Z0-853認証試験を通るために、いいツールが必要です。Oracle 1Z0-853認証試験について研究の資料がもっとも大部分になって、IT-Passports.comは早くてOracle 1Z0-853認証試験の資料を集めることができます。弊社の専門家は経験が豊富で、研究した問題集がもっとも真題と近づいて現場試験のうろたえることを避けます。

2013年8月28日星期三

Oracleの1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548認定試験の最高問題集

IT-Passports.comを選択したら100%試験に合格することができます。試験科目の変化によって、最新の試験の内容も更新いたします。IT-Passports.comのインターネットであなたに年24時間のオンライン顧客サービスを無料で提供して、もしあなたはIT-Passports.comに失敗したら、弊社が全額で返金いたします。

IT-Passports.comは多くの認証業界の評判を持っています。それは我々はOracle1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548問題集や1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548スタディガイドや1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548問題と解答がたくさんありますから。現在のサイトで最もプロなITテストベンダーとして我々は完璧なアフターサービスを提供します。全てのお客様に追跡サービスを差し上げますから、あなたが買ったあとの一年間で、弊社は全てのお客様に問題集のアップグレードを無料に提供します。その間で認定テストセンターのOracle1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548試験問題は修正とか表示されたら、無料にお客様に保護して差し上げます。Oracle1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548試験問題集はIT-Passports.comのIT領域の専門家が心を込めて研究したものですから、IT-Passports.comのOracle1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548試験資料を手に入れると、あなたが美しい明日を迎えることと信じています。

試験番号:1Z0-854問題集
試験科目:Oracle 「Java Standard Edition 5 Programmer Certified Professional Upgrade Exam」
問題と解答:全138問

試験番号:1Z0-853問題集
試験科目:Oracle 「Java Standard Edition 5 Programmer Certified Professional Exam」
問題と解答:全362問

試験番号:1Z0-852問題集
試験科目:Oracle 「Java Standard Edition 6 Programmer Certified Professional Upgrade Exam」
問題と解答:全96問

試験番号:1Z0-851問題集
試験科目:Oracle 「Java Standard Edition 6 Programmer Certified Professional Exam」
問題と解答:全290問

試験番号:1Z0-850問題集
試験科目:Oracle 「Java Standard Edition 5 and 6, Certified Associate Exam」
問題と解答:全242問

試験番号:1Z0-548問題集
試験科目:Oracle 「Oracle E-Business Suite R12.1 Human Capital Management Essentials」
問題と解答:全70問

IT-Passports.comは優れたIT情報のソースを提供するサイトです。IT-Passports.comで、あなたの試験のためのテクニックと勉強資料を見つけることができます。IT-Passports.comのOracleの1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548試験トレーニング資料は豊富な知識と経験を持っているIT専門家に研究された成果で、正確度がとても高いです。IT-Passports.comに会ったら、最高のトレーニング資料を見つけました。IT-Passports.comのOracleの1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548試験トレーニング資料を持っていたら、試験に対する充分の準備がありますから、安心に利用したください。

IT-Passports.comは最高な品質で最速なスピードでOracleの1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548認定試験の資料を更新するサイトでございます。もしかすると君はほかのサイトもOracleの1Z0-854 1Z0-853 1Z0-852 1Z0-851 1Z0-850 1Z0-548認証試験に関する資料があるのを見つけた、比較したらIT-Passports.comが提供したのがいちばん全面的で品質が最高なことがわかりました。

購入前にお試し,私たちの試験の質問と回答のいずれかの無料サンプルをダウンロード:http://www.it-passports.com/1Z0-851.html

NO.1 }
Which method will complete this class?A. public int compareTo(Object o){/*more code here*/
}
B. public int compareTo(Score other){/*more code here*/
}
C. public int compare(Score s1,Score s2){/*more code here*/
}
D. public int compare(Object o1,Object o2){/*more code here*/
}
Answer: B

Oracle   1Z0-851練習問題   1Z0-851   1Z0-851
6.Given

NO.2 b.foo();

NO.3 System.out.println(sb1 + " " + s1)
;
Which code fragment, inserted at line 24, outputs "123abc 123abc"
?A. sb1.append("abc"); s1.append("abc")
;
B. sb1.append("abc"); s1.concat("abc")
;
C. sb1.concat("abc"); s1.append("abc")
;
D. sb1.concat("abc"); s1.concat("abc")
;
E. sb1.append("abc"); s1 = s1.concat("abc")
;
F. sb1.concat("abc"); s1 = s1.concat("abc")
;
G. sb1.append("abc"); s1 = s1 + s1.concat("abc")
;
H. sb1.concat("abc"); s1 = s1 + s1.concat("abc")
;
Answer: E

Oracle練習問題   1Z0-851認定試験   1Z0-851
18.Given that the current directory is empty, and that the user has read and write permissions, and the
following:
11. import java.io.*;
12. public class DOS {
13. public static void main(String[] args) {
14. File dir = new File("dir");
15. dir.mkdir();
16. File f1 = new File(dir, "f1.txt");
17. try {
18. f1.createNewFile();
19. } catch (IOException e) { ; }
20. File newDir = new File("newDir");
21. dir.renameTo(newDir);
22. }
23.
}
Which statement is true?
A. Compilation fails.
B. The file system has a new empty directory named dir.
C. The file system has a new empty directory named newDir.
D. The file system has a directory named dir, containing a file f1.txt.
E. The file system has a directory named newDir, containing a file f1.txt.
Answer: E

Oracle   1Z0-851   1Z0-851過去問   1Z0-851問題集
19.Given:
11. class Converter {
12. public static void main(String[] args) {
13. Integer i = args[0];
14. int j = 12;
15. System.out.println("It is " + (j==i) + " that j==i.");
16. }
17. }
What is the result when the programmer attempts to compile the code and run it with the
command java Converter 12?
A. It is true that j==i.
B. It is false that j==i.
C. An exception is thrown at runtime.
D. Compilation fails because of an error in line 13.
Answer: D

Oracle認定証   1Z0-851認定試験   1Z0-851
20.Given:
11. String test = "Test A. Test B. Test C.";
12. // insert code here
13. String[] result = test.split(regex);
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[ \.] +";
Answer: E

Oracle   1Z0-851   1Z0-851
21.Given:
5. import java.util.Date;
6. import java.text.DateFormat;
21. DateFormat df;
22. Date date = new Date();
23. // insert code here
24. String s = df.format(date);
Which code fragment, inserted at line 23, allows the code to compile?
A. df = new DateFormat();
B. df = Date.getFormat();
C. df = date.getFormat();
D. df = DateFormat.getFormat();
E. df = DateFormat.getInstance();
Answer: E

Oracle   1Z0-851練習問題   1Z0-851   1Z0-851問題集
22.Given a class Repetition:
1. package utils;
2.
3. public class Repetition {
4. public static String twice(String s) { return s + s; }
5. } and given another class Demo: 1. // insert code here
2.
3. public class Demo {
4. public static void main(String[] args) {
5. System.out.println(twice("pizza"));
6. }
7. }
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print
"pizzapizza"?
A. import utils.*;
B. static import utils.*;
C. import utils.Repetition.*;
D. static import utils.Repetition.*;
E. import utils.Repetition.twice();
F. import static utils.Repetition.twice;
G. static import utils.Repetition.twice;
Answer: F

Oracle過去問   1Z0-851認定証   1Z0-851
23.A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where
the old one is installed. Bob is currently able to run a Java chess program starting from his home directory
/home/bob using the command: java -classpath /test:/home/bob/downloads/*.jar
games.Chess Bob's CLASSPATH is set (at login time) to:
/usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jar What is a possible location for the
Chess.class file?
A. /test/Chess.class
B. /home/bob/Chess.class
C. /test/games/Chess.class
D. /usr/lib/games/Chess.class
E. /home/bob/games/Chess.class
F. inside jarfile /opt/java/lib/Games.jar (with a correct manifest)
G. inside jarfile /home/bob/downloads/Games.jar (with a correct manifest)
Answer: C

Oracle   1Z0-851   1Z0-851認定証   1Z0-851   1Z0-851参考書   1Z0-851認証試験
24.Given:
3. interface Animal { void makeNoise(); }
4. class Horse implements Animal {
5. Long weight = 1200L;
6. public void makeNoise() { System.out.println("whinny"); }
7. }
8. public class Icelandic extends Horse {
9. public void makeNoise() { System.out.println("vinny"); }
10. public static void main(String[] args) {
11. Icelandic i1 = new Icelandic();
12. Icelandic i2 = new Icelandic();
13. Icelandic i3 = new Icelandic();
14. i3 = i1; i1 = i2; i2 = null; i3 = i1;
15. }
16.
}
When line 15 is reached, how many objects are eligible for the garbage collector?A. 0
B. 1
C. 2
D. 3
E. 4
F. 6
Answer: E

Oracle   1Z0-851   1Z0-851過去問
25.Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog
com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory
structure for a JAR file from which those classes can be used by the compiler and JVM?
A. Jar A
B. Jar B
C. Jar C
D. Jar D
E. Jar E
Answer: A

Oracle過去問   1Z0-851問題集   1Z0-851

NO.4 // insert code here

NO.5 public Person(String name) {

NO.6 private name;

NO.7 public int hashCode() {

NO.8 return 420;

NO.9 // insert code here

NO.10 }

NO.11 Given classes defined in two different files:
1. package util;
2. public class BitUtils {
3. private static void process(byte[] b) {}
4. }
1. package app;
2
. public class SomeApp
{
3. public static void main(String[] args)
{
4. byte[] bytes = new byte[256]
;
5. // insert code here
6.
}
7.
}
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 util.BitUtils.*; process(bytes)
;
F. SomeApp cannot use the process method in BitUtils.
Answer: F

Oracle   1Z0-851認定試験   1Z0-851認定試験   1Z0-851練習問題   1Z0-851認定試験

NO.12 Given:
11. public static void test(String str) {
12. int check = 4;
13. if (check = str.length()) {
14. System.out.print(str.charAt(check -= 1) +", ");
15. } else {
16. System.out.print(str.charAt(0) + ", ");
17. }
18. } and the invocation:
21. test("four");
22. test("tee");
23. test("to");
What is the result?
A. r, t, t,
B. r, e, o,
C. Compilation fails.
D. An exception is thrown at runtime.
Answer: C

Oracle認定試験   1Z0-851認証試験   1Z0-851   1Z0-851認定試験

NO.13 }
What is the result?
A. Afoo Afoo
B. Afoo Bfoo
C. Bfoo Afoo
D. Bfoo Bfoo
E. Compilation fails.
F. An exception is thrown at runtime.
Answer: D

Oracle参考書   1Z0-851   1Z0-851練習問題   1Z0-851   1Z0-851認定試験
13.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.
Answer: C

Oracle   1Z0-851問題集   1Z0-851認証試験   1Z0-851問題集
14.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 = new int[2]{ 100,200 }
;
D. static final int[] a;
static void init() { a = new int[3]; a[0]=100; a[1]=200;
}
Answer: A,B

Oracle   1Z0-851認定証   1Z0-851   1Z0-851過去問
15.Given:
10. interface Foo { int bar(); }
11. public class Sprite {
12. public int fubar( Foo foo ) { return foo.bar(); }
13. public void testFoo() {
14. fubar(
15. // insert code here
16. );
17. }
18.
}
Which code, inserted at line 15, allows the class Sprite to compile?A. Foo { public int bar() { return 1;
}
B. new Foo { public int bar() { return 1;
}
C. new Foo() { public int bar() { return 1;
}
D. new class Foo { public int bar() { return 1; }
Answer: C

Oracle認証試験   1Z0-851   1Z0-851参考書
16.Given:
1. class Alligator {
2. public static void main(String[] args) {
3. int []x[] = {{1,2}, {3,4,5}, {6,7,8,9}};
4. int [][]y = x;
5. System.out.println(y[2][1]);
6. }
7.
}
What is the result?A. 2
B. 3
C. 4
D. 6
E. 7
F. Compilation fails.
Answer: E

Oracle   1Z0-851   1Z0-851練習問題   1Z0-851認定証
17.Given:
22. StringBuilder sb1 = new StringBuilder("123");

NO.14 Given a pre-generics implementation of a method:
11. public static int sum(List list) {
12. int sum = 0;
13. for ( Iterator iter = list.iterator(); iter.hasNext(); ) {
14. int i = ((Integer)iter.next()).intValue();
15. sum += i;
16. }
17. return sum;
18. }
What three changes allow the class to be used with generics and avoid an unchecked warning? (Choose
three.)
A. Remove line 14.
B. Replace line 14 with "int i = iter.next();".
C. Replace line 13 with "for (int i : intList) {".
D. Replace line 13 with "for (Iterator iter : intList) {".
E. Replace the method declaration with "sum(List<int> intList)".
F. Replace the method declaration with "sum(List<Integer> intList)".
Answer: A,C,F

Oracle認証試験   1Z0-851認定資格   1Z0-851   1Z0-851認定資格

NO.15 Given:
1. public class GC {
2. private Object o;
3. private void doSomethingElse(Object obj) { o = obj; }
4. public void doSomething() {
5. Object o = new Object();
6. doSomethingElse(o);
7. o = new Object();
8. doSomethingElse(null);
9. o = null;
10. }
11. }
When the doSomething method is called, after which line does the Object created in line 5
become available for garbage collection?
A. Line 5
B. Line 6
C. Line 7
D. Line 8
E. Line 9
F. Line 10
Answer: D

Oracle練習問題   1Z0-851認定証   1Z0-851練習問題   1Z0-851認定資格

NO.16 Given:
13. public class Pass {
14. public static void main(String [] args) {
15. int x = 5;
16. Pass p = new Pass();
17. p.doStuff(x);
18. System.out.print(" main x = " + x);
19. }
20.
21. void doStuff(int x) {
22. System.out.print(" doStuff x = " + x++);
23. }
24.
}
What is the result?A. Compilation fails.
B. An exception is thrown at runtime.
C. doStuff x = 6 main x =
6
D. doStuff x = 5 main x =
5
E. doStuff x = 5 main x =
6
F. doStuff x = 6 main x =
5
Answer: D

Oracle   1Z0-851認証試験   1Z0-851過去問   1Z0-851過去問

NO.17 return "<" + wins + "," + losses + ">";

NO.18 }
Which statement is true?A. The time to find the value from HashMap with a Person key depends on the
size of the map.
B. Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
C. Inserting a second Person object into a HashSet will cause the first Person object to be
removed as a duplicate.
D. The time to determine whether a Person object is contained in a HashSet is constant and does NOT
depend on the size of the map.
Answer: A

Oracle   1Z0-851   1Z0-851   1Z0-851   1Z0-851過去問
7.Given:
5. import java.util.*;
6. public class SortOf {
7. public static void main(String[] args) {
8. ArrayList<Integer> a = new ArrayList<Integer>();
9. a.add(1); a.add(5); a.add(3);
11. Collections.sort(a);
12. a.add(2);
13. Collections.reverse(a);
14. System.out.println(a);
15. }
16.
}
What is the result?A. [1, 2, 3, 5]
B. [2, 1, 3, 5]
C. [2, 5, 3, 1]
D. [5, 3, 2, 1]
E. [1, 3, 5, 2]
F. Compilation fails.
G. An exception is thrown at runtime.
Answer: C

Oracle   1Z0-851練習問題   1Z0-851   1Z0-851練習問題   1Z0-851
8.Given
11. public interface Status {
12. /* insert code here */ int MY_VALUE = 10;
13. } Which three are valid on line
12?
(Choose three.
)A. final
B. static
C. native
D. public
E. private
F. abstract
G. protected
Answer: A,B,D

Oracle認定証   1Z0-851   1Z0-851認定試験   1Z0-851認定証   1Z0-851
9.Given:
5. class Atom {
6. Atom() { System.out.print("atom "); }
7. }
8. class Rock extends Atom {
9. Rock(String type) { System.out.print(type); }
10. }
11. public class Mountain extends Rock {
12. Mountain() {
13. super("granite ");
14. new Rock("granite ");
15. }
16. public static void main(String[] a) { new Mountain(); }
17. }
What is the result?
A. Compilation fails.
B. atom granite
C. granite granite
D. atom granite granite
E. An exception is thrown at runtime.
F. atom granite atom granite
Answer: F

Oracle練習問題   1Z0-851   1Z0-851   1Z0-851
10.Click the Exhibit button. Which three statements are true? (Choose three.)
A. Compilation fails.
B. The code compiles and the output is 2.
C. If lines 16, 17 and 18 were removed, compilation would fail.
D. If lines 24, 25 and 26 were removed, compilation would fail.
E. If lines 16, 17 and 18 were removed, the code would compile and the output would be 2.
F. If lines 24, 25 and 26 were removed, the code would compile and the output would be 1.
Answer: B,E,F

Oracle   1Z0-851参考書   1Z0-851練習問題
11.Given:
10. class Line {
11. public class Point { public int x,y;}
12. public Point getPoint() { return new Point(); }
13. }
14. class Triangle {
15. public Triangle() {
16. // insert code here
17. }
18.
}
Which code, inserted at line 16, correctly retrieves a local instance of a Point object?A. Point p =
Line.getPoint()
;
B. Line.Point p = Line.getPoint()
;
C. Point p = (new Line()).getPoint()
;
D. Line.Point p = (new Line()).getPoint()
;
Answer: D

Oracle練習問題   1Z0-851   1Z0-851参考書   1Z0-851認証試験
12.Given:
11. class Alpha {
12. public void foo() { System.out.print("Afoo "); }
13. }
14. public class Beta extends Alpha {
15. public void foo() { System.out.print("Bfoo "); }
16. public static void main(String[] args) {
17. Alpha a = new Beta();
18. Beta b = (Beta)a;
19. a.foo();

NO.19 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.Queue
B. java.util.ArrayList
C. java.util.LinearList
D. java.util.LinkedList
Answer: D

Oracle認定証   1Z0-851   1Z0-851練習問題   1Z0-851

NO.20 }

NO.21 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. Compilation fails.
B. An exception is thrown at runtime.
C. The attribute id in the ItemTest object remains unchanged.
D. The attribute id in the ItemTest object is modified to the new value.
E. A new ItemTest object is created with the preferred value in the id attribute.
Answer: A

Oracle   1Z0-851認定証   1Z0-851   1Z0-851

NO.22 }

NO.23 Given:
12. import java.util.*;
13. public class Explorer2 {
14. public static void main(String[] args) {
15. TreeSet<Integer> s = new TreeSet<Integer>();
16. TreeSet<Integer> subs = new TreeSet<Integer>();
17. for(int i = 606; i < 613; i++)
18. if(i%2 == 0) s.add(i);
19. subs = (TreeSet)s.subSet(608, true, 611, true);
20. s.add(629);
21. System.out.println(s + " " + subs);
22. }
23.
}
What is the result?A. Compilation fails.
B. An exception is thrown at runtime.
C. [608, 610, 612, 629] [608, 610]
D. [608, 610, 612, 629] [608, 610, 629]
E. [606, 608, 610, 612, 629] [608, 610]
F. [606, 608, 610, 612, 629] [608, 610, 629]
Answer: E

Oracle認定試験   1Z0-851   1Z0-851   1Z0-851認定資格

NO.24 String s1 = "123";

NO.25 public class Person {

NO.26 public String toString() {

NO.27 Given:
1. public class Score implements Comparable<Score> {
2. private int wins, losses;
3. public Score(int w, int l) { wins = w; losses = l; }
4. public int getWins() { return wins; }
5. public int getLosses() { return losses; }

NO.28 this.name = name;

NO.29 }

NO.30 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() < min.doubleValue())
17. min = added;
18. if (max == null || added.doubleValue() > max.doubleValue())
19. max = added;
20. }
21.
}
Which two, inserted at line 11, will allow the code to compile? (Choose two.
)A. public class MinMax<?>
{
B. public class MinMax<? extends Number>
{
C. public class MinMax<N extends Object>
{
D. public class MinMax<N extends Number>
{
E. public class MinMax<? extends Object>
{
F. public class MinMax<N extends Integer>
{
Answer: D,F

Oracle認定証   1Z0-851認定試験   1Z0-851認証試験   1Z0-851   1Z0-851認定資格   1Z0-851