1Z0-850 | All About High value 1Z0-850 pdf


Q81. - (Topic 1) 

Which two are benefits of servlets? (Choose two.) 

A. They allow you to embed Java code in HTML files. 

B. They represent data in a persistent store. 

C. They can produce dynamic content in response to web client requests. 

D. Their lifecycles are managed by the container. 

Answer: C,D 

Q82. - (Topic 1) 

What is the purpose of JNDI? 

A. to access native code from a Java application 

B. to parse XML documents 

C. to access various directory services using a single interface 

D. to register Java Web Start applications with a web server 

Answer:

Q83. - (Topic 2) 

Which correctly declares a class Test in package com.example? 

A. package com.example { 

class Test { 

// some code here 

B. package com.example; 

public class Test { 

// some code here 

C. public class com.example.Test { 

// some code here 

D. import com.example; 

public class Test { 

// some code here 

Answer:

Q84. - (Topic 2) 

Which two are true? (Choose two.) 

A. SQL commands cannot be contained in servlets. 

B. SQL technology is used to access JMS queues from within EJB technology. 

C. SQL allows you to modify multiple rows in a table with a single command. 

D. SQL is a web services technology used to parse large XML files. 

E. SQL commands can be written in applications that use NO Java technologies. 

Answer: C,E 

Q85. - (Topic 1) 

Given: 

5.

 // insert code here 

6.

 public abstract void bark(); 

7.

 } 

8. 

9.

 // insert code here 

10.

 public void bark() { 

11.

 System.out.println("woof"); 

12.

 } 

13.

 } 

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

A. 5. abstract Dog { 

9. public class Poodle extends Dog { 

B. 5. class Dog { 

9. public class Poodle extends Dog { 

C. 5. abstract Dog { 

9. public class Poodle implements Dog { 

D. 5. abstract class Dog { 

9. public class Poodle implements Dog { 

E. 5. class Dog { 

9. public class Poodle implements Dog { 

F. 5. abstract class Dog { 

9. public class Poodle extends Dog { 

Answer:

Q86. - (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 8. 

B. x = 3 , y = 7 

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

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

E. x = 53 , y = 97 

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

Answer:

Q87. - (Topic 1) 

Which is an appropriate description of session beans? 

A. They are used to share data among clients. 

B. They are used to implement business processes. 

C. They are used to store persistent data. 

D. They are used to represent data in an RDBMS. 

Answer:

Q88. - (Topic 1) 

Which two technologies are primarily focused on developing Web Services? (Choose two.) 

A. UDDI 

B. JSP 

C. RDBMS 

D. WSDL 

E. JDBC 

Answer: A,D 

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

Q90. - (Topic 2) 

Which three compile without error? (Choose three.) 

A. String str = 'Hello' 

B. String str = "Hello"; 

C. String str = "Hello" - " World!"; 

D. String str = new String("Hello"); 

E. String str = "Hello" + " World!"; 

F. String str = new String('Hello'); 

Answer: B,D,E