1Z0-850 | Renewal 1Z0-850 Exam Study Guides With New Update Exam Questions


Q111. - (Topic 1) 

Which two are associated with the web tier in a J2EE web-based application? (Choose two.) 

A. servlets 

B. JAX-RPC 

C. JMS 

D. entity beans 

E. JSP 

Answer: A,E 

Q112. - (Topic 1) 

Given: 

1.

 // insert code here 

2.

 void play(); 

3.

 void stop(); 

4.

 } 

5.

 // insert code here 

6.

 public void play() { } 

7.

 public void stop() { } 

8.

 } 

Which, inserted at lines 1 and 5, allows the code to compile? 

A. 1. interface Player { 

5. class DVDPlayer implements Player { 

B. 1. implements Player { 

5. class DVDPlayer interface Player { 

C. 1. abstract class Player { 

5. class DVDPlayer extends Player { 

D. 1. interface Player { 

5. class DVDPlayer extends Player { 

E. 1. class Player { 

5. interface DVDPlayer implements Player { 

Answer:

Q113. - (Topic 2) 

Which is true? 

A. All threads created by a given Java program share the same invocation stack. 

B. A J2SE program can create no more than 10 concurrent threads. 

C. Threading allows GUI applications to perform lengthy calculations and respond to user events at the same time. 

D. The Java threading model provides equal processor time to all threads. 

Answer:

Q114. - (Topic 2) 

Given: 

1.

 class Variables { 

2.

 int i; 

3.

 String s; 

4.

 Object o; 

5.

 String g = null; 

6.

 Integer y; 

7.

 char c; 

8.

 } 

Which four are object references? (Choose four.) 

A. c 

B. i 

C. s 

D. g 

E. y F. o 

Answer: C,D,E,F 

Q115. - (Topic 2) 

Which two are valid? (Choose two.) 

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

class EnumTest { 

public static void main(String args[]) { 

System.out.println(Suit.CLUBS); 

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. class EnumTest { 

public static void main(String args[]) { 

enum Num { ONE, TWO, THREE, FOUR } 

System.out.println(Num.ONE); 

Answer: A,B 

Q116. - (Topic 2) 

Which three can be included in an interface declaration? (Choose three.) 

A. protected void showMessage(); 

B. void showMessage(); 

C. abstract void showMessage(); 

D. private void showMessage(); 

E. public void showMessage() { 

System.out.println("Hello."); 

F. public void showMessage(); 

G. static void showMessage(); 

Answer: B,C,F 

Q117. - (Topic 1) 

What is true about JavaScript clients? 

A. They CANNOT write to the client's hard drive. 

B. They must be hosted by J2EE containers. 

C. They require Java Web Start technology to be deployed. 

D. They support all standard J2SE syntax. 

Answer:

Q118. - (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:

Q119. - (Topic 1) 

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

A. Penguin 

B. Helicopter 

C. Airplane 

D. Lark 

Answer:

Q120. - (Topic 1) 

You have developed a MIDlet that runs on a Java-enabled Personal Digital Assistant (PDA) device. Now, your employer has asked you to port the MIDlet to run on other Java platforms. Which is true? 

A. The MIDlet is 100% portable across all J2ME devices. 

B. The MIDlet can run within a standard web browser. 

C. The MIDlet is guaranteed to run correctly under J2SE. 

D. The MIDlet is NOT guaranteed to run on a Java technology-enabled phone. 

Answer: