Want to know Examcollection 1Z0-850 Exam practice test features? Want to lear more about Oracle Java Standard Edition 5 and 6, Certified Associate Exam certification experience? Study Realistic Oracle 1Z0-850 answers to Most up-to-date 1Z0-850 questions at Examcollection. Gat a success with an absolute guarantee to pass Oracle 1Z0-850 (Java Standard Edition 5 and 6, Certified Associate Exam) test on your first attempt.


♥♥ 2021 NEW RECOMMEND ♥♥

Free VCE & PDF File for Oracle 1Z0-850 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 1Z0-850 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/1Z0-850-exam-dumps.html

Q31. - (Topic 2) 

Which two are true about composition relationships? (Choose two.) 

A. Composition relationships are never one-to-many. 

B. Composition relationships can be one-to-many. 

C. Composition relationships are used to show exclusive ownership. 

D. Composition relationships are always many-to-many. 

E. Composition relationships are never used when an object is owned by exactly one other object. 

Answer: B,C 


Q32. - (Topic 1) 

Given: 

17. class B { } 

Which demonstrates inheritance? 

A. class A extends B { } 

B. class A this B { } 

C. class A super B { } 

D. class A implements B { } 

Answer:


Q33. - (Topic 2) 

Which two are true about the composition relationship "A Blip consists of many Blipverts."? (Choose two.) 

A. When a Blipvert is deleted, its Blip should also be deleted. 

B. A Blipvert must be part of at least one Blip. 

C. A Blipvert can be a part of only one Blip. 

D. A Blip must have at least two Blipverts. 

E. When a Blip is deleted, each of its Blipverts should also be deleted. 

Answer: C,E 


Q34. - (Topic 1) 

Which two are valid? (Choose two.) 

A. class EnumTest { 

public static void main(String args[]) { 

enum Num { ONE, TWO, THREE, FOUR } 

System.out.println(Num.ONE); 

B. class EnumTest { 

enum Days { Sat, Sun, Mon, Tue, Wed, Thu, Fri } 

public static void main(String args[]) { 

System.out.println(Days.Sat); 

C. class EnumTest { 

enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 } 

public static void main(String args[]) { 

System.out.println(Colors.Red); 

D. enum Suit { CLUBS, DIAMONDS, HEARTS, SPADES } 

class EnumTest { 

public static void main(String args[]) { 

System.out.println(Suit.CLUBS); 

Answer: B,D 


Q35. - (Topic 1) 

Given: 

4.

 int n1 = 22, n2 = 67, n3 = 0, n4 = 47, n5 = 17, n6 = 50; 

5.

 boolean b = true; 

Which three evaluate to true? (Choose three.) 

A. !(n1 < n3) && (n5 != n4) 

B. (n3 < n5) || (n2 <= n1) 

C. (n2 > n6) || b 

D. (!b) && (n1 <= n4) 

E. (n2 < n6) && (n4 >= n1) 

Answer: A,B,C 


Q36. - (Topic 1) 

Click the Exhibit button. Which class correctly implements the interface Flyer? 

A. Penguin 

B. Helicopter 

C. Airplane 

D. Lark 

Answer:


Q37. - (Topic 1) 

Which two are features of JNDI? (Choose two.) 

A. an interface to store and retrieve named Java objects of any type 

B. an interface to search for objects using attributes 

C. a defined common set of messaging concepts and programming strategies 

D. connectivity to databases and other tabular data sources 

Answer: A,B 


Q38. - (Topic 2) 

Given: 

5.

 // insert code here 

6.

 public void eat(); 

7.

 } 

8. 

9.

 // insert code here 

10.

 public void eat() { 

11.

 System.out.println("eating dinner"); 

12.

 } 

13.

 } 

Which, inserted at lines 5 and 9, allows the file to compile? 

A. 5. class Animal { 

9. public class Tiger implements Animal { 

B. 5. interface Animal { 

9. public class Tiger implements Animal { 

C. 5. class Animal { 

9. public class Tiger subclasses Animal { 

D. 5. interface Animal { 

9. public class Tiger extends Animal { 

E. 5. class Animal { 

9. public class Tiger extends Animal { 

F. 5. interface Animal { 

9. public class Tiger subclasses Animal { 

Answer:


Q39. - (Topic 1) 

Given: 

4.

 class Example { 

5.

 int x = 50; 

6.

 int y = 100; 

7.

 public static void main(String args[]) { 

8.

 int x = 0, y = 10; 

9.

 Example ex = new Example(); 

10.

 while (x < 3) { 

11.

 x++; y--; 

12.

 } 

13.

 System.out.println("x = " + x + " , y = " + y); 

14.

 } 

15.

 } 

What is the result? 

A. Compilation fails because of an error at line 10. 

B. Compilation fails because of an error at line 8. 

C. x = 53 , y = 97 

D. Compilation fails because of an error at line 9. 

E. Compilation fails because of an error at line 11. 

F. x = 3 , y = 7 

Answer:


Q40. - (Topic 1) 

Given: 

1.

 class Test { 

2.

 public static void main(String args[]) { 

3.

 int num; 

4.

 num = 10; 

5.

 calc(num); 

6.

 System.out.println("num = " + num); 

7.

 } 

8. 

9.

 static void calc(int num) { 1 

0. num += 100; 11. } 12. } 

What is the result? 

A. num = 10 

B. num = 100 

C. Compilation fails because of an error at line 3. 

D. num = 110 

E. Compilation fails because of an error at line 9. 

Answer: