Proper study guides for Update Oracle Java Standard Edition 5 and 6, Certified Associate Exam certified begins with Oracle 1Z0-850 preparation products which designed to deliver the Realistic 1Z0-850 questions by making you pass the 1Z0-850 test at your first time. Try the free 1Z0-850 demo right now.

2016 Nov 1Z0-850 test engine

Q111. - (Topic 2) 

Which two are true? (Choose two.) 

A. Multiplicity indicators are optional, but if they are included they must be shown at both ends of an association. 

B. 2..4 is a valid multiplicity indicator. 

C. The multiplicity indicators + and 1..* are equivalent. 

D. The multiplicity indicators * and 1..* are equivalent. 

E. Multiplicity indicators must always be shown at both ends of an association. 

F. An optional association is shown using the multiplicity indicator 0..1. 

Answer: B,F 


Q112. - (Topic 1) 

Why should package names in Java be unique? 

A. to provide the Internet location from which the package can be downloaded 

B. to programatically declare specific ownership of classes in the package 

C. to avoid class name conflicts if two development groups use the same package and class names 

D. to allow classes in the package to be accessed by classes outside of that package 

Answer:


Q113. - (Topic 2) 

What is the role of a JSP author? 

A. to coordinate the interaction between all the pages in a complex dynamic web-based application 

B. to write Java code to implement business logic 

C. to put static data and dynamic content together to create dynamic web pages 

D. to write Java code that interacts with server-side objects 

Answer:


Q114. - (Topic 2) 

You need an algorithm that must: 

Iterate through an array of primitive integers Print the value of each array element in index order If the value of the element is equal to 10, print the value of the element, and then terminate 

the iteration 

Which method correctly implements the algorithm? 

A. public static void foo(int[] list) { for each(int i in list) { System.out.println(i); 

if (i==10) terminate; } 

B. public static void foo(int[] list) { 

for(int i=0; i < list.length; i++) { 

System.out.println(i); 

if (i==10) continue; 

C. public static void foo(int[] list) { 

for(int i:list) { 

System.out.println(i); 

if (i==10) break; 

D. public static void foo(int[] list) { 

while(list.length > 0) { 

System.out.println(i); 

if (i==10) break; 

E. public static void foo(int[] list) { 

for(int i=0; i < list.length; i++) { 

System.out.println(i); 

if (i==10) break; 

Answer:


Q115. - (Topic 1) 

Click the Exhibit button. Which, inserted at line 3 of the TestDrink class, demonstrates the "program to an interface" principle? 

A. Drinkable aDrink = DrinkableFactory.getDrinkable(); 

B. Drinkable aDrink = new Drinkable(); 

C. Tea aDrink = new Drinkable(); 

D. Tea aDrink = new Tea(); 

Answer:


Regenerate 1Z0-850 exam question:

Q116. - (Topic 1) 

Which two are characteristics of applets? (Choose two.) 

A. Because it executes on the web server, the client does NOT incur the processing overhead. 

B. Applet security is provided by Java's sandbox security model. 

C. Applets can be developed quickly using HTML/JavaScript tags. 

D. Because code is downloaded at the time of execution, applets are easy to distribute. 

Answer: B,D 


Q117. - (Topic 2) 

Click the Exhibit button. Which two are true? (Choose two.) 

A. Every Dippy must be associated with at least one Zippy. 

B. Every Dippy must be associated with exactly one Zippy. 

C. It is valid for a Zippy to be associated with more than one Dippy. 

D. It is valid for a Zippy to have no associated Dippy. 

E. Every Zippy must be associated with exactly one Dippy. 

F. It is valid for a Dippy to have no associated Zippy. 

Answer: A,D 


Q118. - (Topic 2) 

You need to create a class Foo that will record the number of times the go() method is invoked on a particular instance of the class. Which solution correctly implements this goal? 

A. Declare a local variable invokeCount inside the go() method, and increment the variable within the go() method. 

B. Declare a static variable invokeCount for the class Foo, and increment the variable within the go() method. 

C. Declare a method parameter invokeCount as the argument to the go() method, and increment the variable within the go() method. 

D. Declare an instance variable invokeCount for the class Foo, and increment the variable within the go() method. 

Answer:


Q119. - (Topic 2) 

Given: 

1.

 class X { 

2.

 private Y y; 

3.

 public X(Y y) { this.y = y; } 

4.

 } 

5.

 class Y { 

6.

 private X x; 

7.

 public Y() { } 

8.

 public Y(X x) { this.x = x; } 

9.

 } 

The instance variable y is intended to represent the composition relationship "X is composed of Y." 

Which code correctly maintains this meaning? 

A. Y yy = new Y(); 

X x1 = new X(yy); 

X x2 = new X(yy); 

B. X xx = new X(null); 

Y y1 = new Y(xx); 

Y y2 = new Y(xx); 

C. X x1 = new X(new Y()); 

X x2 = new X(new Y()); 

D. Y y1 = new Y(new X(null)); 

Y y2 = new Y(new X(null)); 

Answer:


Q120. - (Topic 1) 

Which two describe benefits of encapsulation? (Choose two.) 

A. Code is more useful because attributes of the class can be accessed by other classes for both reading and writing. 

B. Code is more efficient because attributes of the class can be accessed directly by other classes, without the overhead of going through access methods. 

C. Code is more reusable because the attributes of the class are protected from direct modification by other code. 

D. Code is more flexible because the attributes can be modified directly from code in other packages. 

E. Code is safer because attributes of the class CANNOT be directly modified by code outside the class. 

Answer: C,E