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

    Why should package names in Java be unique?

    A. to provide the Internet location from which the package can be downloaded
    B. to programatically declare specific ownership of classes in the package
    C. to avoid class name conflicts if two development groups use the same package and class names
    D. to allow classes in the package to be accessed by classes outside of that package

  • Question 162:

    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.

  • Question 163:

    Which is a valid abstract class?

    A. public abstract class Car {protected abstract void accelerate();}
    B. public abstract class Car {protected void accelerate();}
    C. public abstract class Car {protected abstract void accelerate() {// more code here}
    D. public interface Car {protected abstract void accelerate();}
    E. public abstract class Car {protected final void accelerate();}

  • Question 164:

    Click the Exhibit button.

    Which code correctly implements the association between A and B?

    A. class A { }class B {private A[] a;}
    B. class A { }class B {private A a;}
    C. class A {private B b;}class B {private A[] a;}
    D. class A {private B[] b;}class B {private A a;}
    E. class A {private B b;}class B { }
    F. class A {private B[] b;}class B { }

  • Question 165:

    Click the Exhibit button.

    Which diagram best represents the relationship "A Dog has four Legs" based on the definitions of association and composition?

    A. A
    B. C
    C. D
    D. B

  • Question 166:

    Given two complete source files:

    1.

    /* Example.java */

    2.

    package pack;

    3.

    public class Example { }

    1.

    /* Test.java */

    2.

    // insert code here

    3.

    public class Test {

    4.

    public static void main(String args[]) {

    5.

    Example obj = new Example();

    6.

    }

    7.

    }

    Which, inserted at line 2 in Test.java, allows the code to compile?

    A. import pack;
    B. The code compiles with no changes.
    C. import pack.Test;
    D. import pack.Example;

  • Question 167:

    Why should package names in Java be unique?

    A. to programatically declare specific ownership of classes in the package
    B. to allow classes in the package to be accessed by classes outside of that package
    C. to provide the Internet location from which the package can be downloaded
    D. to avoid class name conflicts if two development groups use the same package and class names

  • Question 168:

    Given:

    18.

    String s = " abcdcba ";

    19.

    int x = 2;

    20.

    s = s.trim();

    21.

    if (s.length() < 8) {

    22.

    x = s.indexOf('c', 3);

    23.

    }

    24.

    System.out.println("x = " + x); What is the result?

    A. x = 5
    B. x = 3
    C. x = 6
    D. x = 4
    E. x = 2

  • Question 169:

    Given:

    11. class Cat {

    14.

    public static void main(String [] args) {

    15.

    Cat c1 = new Cat();

    16.

    Cat c3 = new Cat();

    17.

    Cat c2 = c1;

    18.

    Cat c4 = c3;

    19.

    c1 = c4;

    20.

    c4 = c2;

    21.

    if (c1 == c2) System.out.print("c1 == c2 ");

    22.

    if (c1 == c3) System.out.print("c1 == c3 ");

    23.

    }

    24.

    }

    What is the result?

    A. The output is unpredictable.
    B. c1 == c2 c1 == c3
    C. No output is produced.
    D. c1 == c3
    E. c1 == c2

  • Question 170:

    Which two are true? (Choose two.)

    A. An interface CANNOT be extended by another interface.
    B. An abstract class CANNOT be extended by an abstract class.
    C. An interface can be extended by an abstract class.
    D. An abstract class can implement an interface.
    E. An abstract class can be extended by a concrete class.
    F. An abstract class can be extended by an interface.

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.