1Z0-850 Exam Details

  • Exam Code
    :1Z0-850
  • Exam Name
    :Java SE 5 and 6, Certified Associate
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :242 Q&As
  • Last Updated
    :Dec 07, 2021

Oracle 1Z0-850 Online Questions & Answers

  • Question 41:

    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 throughaccess 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.

  • Question 42:

    Which is true about Java RMI?

    A. rmiregistry provides a lookup service.
    B. RMI is the acronym for Remote Method Interchange.
    C. An HTTP server is necessary to use RMI.
    D. RMI uses the SOAP protocol.

  • Question 43:

    Which statement about java.util is incorrect?

    A. It contains the collections framework.
    B. It contains classes necessary to implement networking applications.
    C. It contains HashSet and Vector.
    D. It contains classes used to manipulate dates.

  • Question 44:

    How can the two class paths be set for the javac compiler? (Choose two.)

    A. using the PATH environment variable
    B. using the -classpath option to java
    C. using the CLASSPATH environment variable
    D. using the -sourcepath option to javac
    E. using the -classpath option to javac
    F. using the BIN environment variable
    G. using the -classes option to javac

  • Question 45:

    Click the Task button.

    Which is true?

    A. A is an instance of B.
    B. A extends B.
    C. A implements B.
    D. B extends A.
    E. This is NOT valid UML notation.
    F. B implements A.
    G. B is an instance of A.

  • Question 46:

    Which is an advantage of applets over HTML/JavaScript clients?

    A. Applets are more widely supported by browsers.
    B. Applets are downloaded more quickly to the client.
    C. Applets can use a wider variety of UI components.
    D. In their default state, applets have access to the client's computer.

  • Question 47:

    You are asked to create a Dog class that exposes the Dog class String name and int breed to other code as read-only attributes, provides encapsulation, and adheres to the standard JavaBeans naming conventions.

    Which approach implements these requirements?

    A. Provide public name() and public breed() methods in the Dog class, and mark the name and breed instance variables private.
    B. Provide public getName()/setName() and public getBreed()/setBreed() methods in the Dog class, and mark the name and breedinstance variables private.
    C. Provide private getName() and private getBreed() methods in the Dog class, and mark the name and breed instance variables private.
    D. Provide private name() and private breed() methods in the Dog class, and mark the name and breed instance variables public.
    E. Provide public getName() and public getBreed() methods in the Dog class, and mark the name and breed instance variables private.

  • Question 48:

    Which three are responsibilties of the business tier in a multitier web-based application with web, business, and EIS tiers? (Choose three.)

    A. to integrate with legacy applications
    B. to provide business logic
    C. to generate dynamic content
    D. to participate in transactions
    E. to process requests from web-based clients

  • Question 49:

    Which four are legal declarations? (Choose four.)

    A. String st = null;
    B. String st = "Hello";
    C. String st == 'Hello';
    D. String st = 'Hello';
    E. String st == "Hello";
    F. String[] st = new String[1];
    G. String st = new String("Hello");

  • Question 50:

    Given:

    1.

    class Test {

    2.

    public static void main(String[] args) {

    3.

    String str = "Hello";

    4.

    str = str.replace("Bye");

    5.

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

    6.

    }

    7.

    }

    What is the result?

    A. Compilation fails.
    B. str : HelloBye
    C. str : Byelo
    D. str : Hello
    E. str : Bye
    F. str : HeBye
    G. The code runs with no output.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-850 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.