[Free] 2018(Jan) EnsurePass Dumpsleader Oracle 1z0-850 Dumps with VCE and PDF 41-50

Ensurepass.com : Ensure you pass the IT Exams
2018 Jan Oracle Official New Released 1z0-850
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/1z0-850.html

Java Standard Edition 5 and 6, Certified Associate Exam

Question No: 41 – (Topic 1)

Which three classes are part of the java.io package? (Choose three.)

  1. File

  2. Socket

  3. URL

  4. Reader

  5. String

  6. BufferedWriter

Answer: A,D,F

Question No: 42 – (Topic 1)

Which two are advantages of using J2EE server-side technologies in a web-based application? (Choose two.)

  1. complexity

  2. network latency

  3. monolithic design

  4. scalability

  5. separation of concerns

Answer: D,E

Question No: 43 – (Topic 1)

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

  1. UDDI

  2. JSP

  3. RDBMS

  4. WSDL

  5. JDBC

    Answer: A,D

    Question No: 44 – (Topic 1)

    Given:

    1. public class Boat{

    2. // insert code here

    3. public void setGas(int v){

    4. gas = v; 5. }

      6. }

      Which, inserted at line 2, is valid and demonstrates encapsulation?

      1. protected int gas;

      2. private int gas;

      3. public int gas;

      4. struct int gas;

Answer: B

Question No: 45 – (Topic 1)

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

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

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

    access methods.

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

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

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

Answer: C,E

Question No: 46 – (Topic 1)

Which two are true about J2ME? (Choose two.)

  1. It provides a built-in database.

  2. It is the foundation platform for J2SE.

  3. It can be used to create applications that run on mobile phones.

  4. It can be used to create Swing applications.

Answer: A,C

Question No: 47 – (Topic 1)

Which package contains the classes used to create a socket?

  1. javax.swing

  2. java.io

  3. java.util

  4. java.net

  5. java.awt

  6. java.lang

Answer: D

Question No: 48 – (Topic 1)

Given:

  1. int num = 0, count;

  2. while ( num lt; 3 ) {

  3. num ;

  4. // insert code here

  5. System.out.println(quot;num = quot; num quot; : count = quot; count); 8. }

    9. }

    Which, inserted at line 6, produces the following output?

    num = 1 : count = 1 num = 1 : count = 2 num = 2 : count = 1 num = 2 : count = 2 num = 3 : count = 1 num = 3 : count = 2

    1. while ( count lt; 3 ) {

    2. for ( count = 1 ; count lt; 3 ; count ) {

    3. for ( count = 0 ; count lt; 3 ; count ) {

    4. while ( count lt; 2 ) {

    5. for ( count = 1 ; count lt; 2 ; count ) {

      Answer: B

      Question No: 49 – (Topic 1)

      Given:

      1. class Test2 {

      2. static String setMessage(String str) {

      3. return str quot;How are you doing?quot;; 4. }

5.

  1. public static void main(String[] args) {

  2. String str = quot;Hello! quot;;

  3. str = setMessage(str);

  4. System.out.println(quot;str : quot; str);

    10. }

    11. }

    What is the result?

    1. str : Hello! How are you doing?

    2. Compilation fails because of an error at line 7.

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

    4. Compilation fails because of an error at line 2.

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

    6. str : Hello!

    7. str : How are you doing?

Answer: A

Question No: 50 – (Topic 1)

Click the Exhibit button. Which is true?

Ensurepass 2018 PDF and VCE

  1. Diagrams A and B are both valid, but have different meanings.

  2. Both diagrams are invalid.

  3. Diagrams A and B are equivalent.

  4. Only diagram A is valid.

  5. Only diagram B is valid.

Answer: C

100% Ensurepass Free Download!
Download Free Demo:1z0-850 Demo PDF
100% Ensurepass Free Guaranteed!
1z0-850 Dumps

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.