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 91:

    Which is a requirement to use applets in a web browser?

    A. The Java compiler must be installed on the client.
    B. A web container must be installed at the server.
    C. The Java Runtime Environment must be installed on the client.
    D. The Java Plug-in must be installed on the server.

  • Question 92:

    Given:

    11.

    interface A {

    12.

    void someMethod();

    13.

    }

    14.

    class B implements A {

    15.

    public void someMethod() { }

    16.

    }

    Which represents the "program to an interface" principle?

    A. public B make() { return new A(); }
    B. public A make() { return new B(); }
    C. public B make() { return new B(); }
    D. public A make() { return new A(); }

  • Question 93:

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

    A. It is used by the browser to display the client user interface.
    B. It contains APIs that are used to access data in an RDBMS.
    C. It is an object-oriented programming language.
    D. It can be generated dynamically by servlets.

  • Question 94:

    Given:

    12.

    String s = "abcdefgabc";

    13.

    char c = s.charAt(2);

    14.

    15.

    if (c == 'c')

    16.

    s = s.replace('c', 'X');

    17.

    else if (c == 'b')

    18.

    s = s.replace('b', 'O');

    19.

    else

    20.

    s = s.replace('c', 'O');

    21.

    System.out.println(s); What is the result?

    A. aOcdefgabc
    B. Compilation fails.
    C. abOdefgabc
    D. abXdefgabc
    E. abOdefgabO
    F. aOcdefgaOc
    G. abXdefgabX

  • Question 95:

    Which two are represented in a UML class diagram? (Choose two.)

    A. relationships between classes and interfaces
    B. ways to test an application
    C. the interactions between objects in sequential order
    D. operations of classes and interfaces

  • Question 96:

    Which statement about threading in Java is false?

    A. Threads waiting to be executed are generally chosen for execution based on priority.
    B. The synchronized keyword is used to lock objects.
    C. A thread is a special type of method.
    D. A thread whose execution has completed is no longer runnable.

  • Question 97:

    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.

  • Question 98:

    Given:

    1.

    class Test2 {

    2.

    static String setMessage(String str) {

    3.

    return str + "How are you doing?";

    4.

    }

    5.

    6.

    public static void main(String[] args) {

    7.

    String str = "Hello! ";

    8.

    str = setMessage(str);

    9.

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

    10.

    }

    11.

    }

    What is the result?

    A. str : Hello! How are you doing?
    B. Compilation fails because of an error at line 7.
    C. Compilation fails because of an error at line 8.
    D. Compilation fails because of an error at line 2.
    E. Compilation fails because of an error at line 3.
    F. str : Hello!
    G. str : How are you doing?

  • Question 99:

    Which three are char literals? (Choose three.)

    A. 'C'
    B. "C"
    C. 'ABC'
    D. '\uF00D'
    E. '\n'
    F. /C/

  • Question 100:

    Click the Exhibit button. Which two are true? (Choose two.)

    A. A Foo instance has access to the Bar with which it is associated.
    B. The diagram does NOT show a composition relation.
    C. It cannot be determined from the diagram whether instances of Foo and Bar will have access to each other.
    D. A Bar instance has access to the Foo with which it is associated.
    E. The diagram shows a composition relation.

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.