1Z0-850 | how many questions of 1Z0-850 braindumps?


Q41. - (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 

Q42. - (Topic 2) 

Given: 

11.

 class Automobile { 

12.

 public void drive() { System.out.print("go forward "); } 

13.

 } 

14.

 class Ferrari extends Automobile { 

15.

 public void drive () { System.out.print("go fast "); } 

16.

 } 

17.

 public class Driver { 

18.

 public static void main(String[] args) { 

19.

 Automobile[] autos = { new Automobile(), new Ferrari() }; 

20.

 for (int x = 0; x < autos.length; x++) 

21.

 autos[x].drive(); 

22.

 } 

23.

 } 

What is the result? 

A. go forward go forward 

B. Compilation fails due to an error on line 19. 

C. Compilation fails due to an error on line 15. 

D. go fast go forward 

E. go fast go fast 

F. go forward go fast 

G. Compilation fails due to an error on line 21. 

Answer:

Q43. - (Topic 1) 

Which is NOT associated with the web tier in a J2EE web-based application? 

A. JavaMail B. HTML 

C. message-driven beans 

D. JNDI 

E. JavaBeans 

Answer:

Q44. - (Topic 1) 

Which option will correctly initialize the property com.example.property to someValue when invoking java? 

A. com.example.property=someValue 

B. -Pproperty:someValue 

C. -P com.example.property someValue 

D. -Pcom.example.property:someValue 

E. -Dcom.example.property=someValue 

Answer:

Q45. - (Topic 2) 

Which Java technology uses standard mappings between Java classes and XML to support web service calls using the SOAP protocol? 

A. JAXM 

B. JAXB 

C. JAX-RPC 

D. EJB 

E. JavaMail 

F. JSP 

Answer:

Q46. - (Topic 1) 

Which two symbols are used to indicate the visibility of an attribute in UML? (Choose two.) 

A. -

B. + 

C. & 

D. $ 

E. * 

Answer: A,B 

Q47. - (Topic 1) 

Given: 

1.

 class Test { 

2.

 public static void main(String args[]) { 

3.

 int i = 1; 

4.

 while (i-- > 1) { 

5.

 System.out.println("i : " + i); 

6.

 } 

7.

 } 

8.

 } 

What is the result? 

A. i : 1 

B. i : -1 

C. i : 0 

D. No output is produced. 

E. Compilation fails. 

Answer:

Q48. - (Topic 1) 

Which package contains classes to read from, and write to, files? 

A. java.net 

B. javax.swing 

C. javax.file 

D. java.util 

E. java.io 

F. java.lang 

G. java.stream 

Answer:

Q49. - (Topic 2) 

Click the Exhibit button. 

Which two classes can have two or more instances associated with a single instance of X. (Choose two.) 

A. D 

B. A 

C. C 

D. B 

Answer: C,D 

Q50. - (Topic 1) 

Which two are true? (Choose two.) 

A. The javax.servlet package contains part of the servlet API. 

B. A servlet is an open source framework developed for creating web applications. 

C. A servlet is a Java class that executes within a web container. 

D. A servlet is a Java class that executes within a web browser. 

E. The servlet API is included in J2SE. 

Answer: A,C