1Z0-851 Exam Details

  • Exam Code
    :1Z0-851
  • Exam Name
    :Oracle Solaris 11 System Administration
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :290 Q&As
  • Last Updated
    :Dec 10, 2021

Oracle 1Z0-851 Online Questions & Answers

  • Question 211:

    DRAG DROP

    Select and Place:

  • Question 212:

    Select and Place:

  • Question 213:

    DRAG DROP

    Select and Place:

  • Question 214:

    Given:

    10.

    public class Foo {

    11.

    static int[] a;

    12.

    static { a[0]=2; }

    13.

    public static void main( String[] args ) {}

    14.

    }

    Which exception or error will be thrown when a programmer attempts to run this code?

    A. java.lang.StackOverflowError
    B. java.lang.IllegalStateException
    C. java.lang.ExceptionInInitializerError
    D. java.lang.ArrayIndexOutOfBoundsException

  • Question 215:

    Given:

    11.

    public class Person {

    12.

    private name;

    13.

    public Person(String name) {

    14.

    this.name = name;

    15.

    }

    16.

    public int hashCode() {

    17.

    return 420;

    18.

    }

    19.

    }

    Which statement is true?

    A. The time to find the value from HashMap with a Person key depends on the size of the map.
    B. Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
    C. Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate.
    D. The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.

  • Question 216:

    Given:

    5.

    import java.util.Date;

    6.

    import java.text.DateFormat;

    21.

    DateFormat df;

    22.

    Date date = new Date();

    23.

    // insert code here

    24.

    String s = df.format(date);

    Which code fragment, inserted at line 23, allows the code to compile?

    A. df = new DateFormat();
    B. df = Date.getFormat();
    C. df = date.getFormat();
    D. df = DateFormat.getFormat();
    E. df = DateFormat.getInstance();

  • Question 217:

    Given:

    12.

    import java.util.*;

    13.

    public class Explorer2 {

    14.

    public static void main(String[] args) {

    15.

    TreeSet s = new TreeSet();

    16.

    TreeSet subs = new TreeSet();

    17.

    for(int i = 606; i < 613; i++)

    18.

    if(i%2 == 0) s.add(i);

    19.

    subs = (TreeSet)s.subSet(608, true, 611, true);

    20.

    s.add(629);

    21.

    System.out.println(s + " " + subs);

    22.

    }

    23.

    }

    What is the result?

    A. Compilation fails.
    B. An exception is thrown at runtime.
    C. [608, 610, 612, 629] [608, 610]
    D. [608, 610, 612, 629] [608, 610, 629]
    E. [606, 608, 610, 612, 629] [608, 610]
    F. [606, 608, 610, 612, 629] [608, 610, 629]

  • Question 218:

    Given:

    1.

    public class Threads4 {

    2.

    public static void main (String[] args) {

    3.

    new Threads4().go();

    4.

    }

    5.

    public void go() {

    6.

    Runnable r = new Runnable() {

    7.

    public void run() {

    8.

    System.out.print("foo");

    9.

    }

    10.

    };

    11.

    Thread t = new Thread(r);

    12.

    t.start();

    13.

    t.start();

    14.

    }

    15.

    }

    What is the result?

    A. Compilation fails.
    B. An exception is thrown at runtime.
    C. The code executes normally and prints "foo".
    D. The code executes normally, but nothing is printed.

  • Question 219:

    DRAG DROP

    Select and Place:

  • Question 220:

    Given:

    22.

    public void go() {

    23.

    String o = "";

    24.

    z:

    25.

    for(int x = 0; x < 3; x++) {

    26.

    for(int y = 0; y < 2; y++) {

    27.

    if(x==1) break;

    28.

    if(x==2 andand y==1) break z;

    29.

    o = o + x + y;

    30.

    }

    31.

    }

    32.

    System.out.println(o);

    33.

    }

    What is the result when the go() method is invoked?

    A. 00
    B. 0001
    C. 000120
    D. 00012021
    E. Compilation fails.
    F. An exception is thrown at runtime.

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-851 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.