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

    A programmer must create a generic class MinMax and the type parameter of MinMax must implement Comparable. Which implementation of MinMax will compile?

    A. class MinMax { E min = null; E max = null; public MinMax() {} public void put(E value) { /* store min or max */ }
    B. class MinMax { E min = null; E max = null; public MinMax() {} public void put(E value) { /* store min or max */ }
    C. class MinMax { E min = null; E max = null; public MinMax() {} public void put(E value) { /* store min or max */ }
    D. class MinMax { E min = null; E max = null; public MinMax() {} public void put(E value) { /* store min or max */ }

  • Question 72:

    A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?

    A. java.util.Queue
    B. java.util.ArrayList
    C. java.util.LinearList
    D. java.util.LinkedList

  • Question 73:

    DRAG DROP

    Select and Place:

  • Question 74:

    Given:

    3.

    import java.util.*;

    4.

    public class G1 {

    5.

    public void takeList(List list) {

    6.

    // insert code here

    7.

    }

    8.

    }

    Which three code fragments, inserted independently at line 6, will compile? (Choose three.)

    A. list.add("foo");
    B. Object o = list;
    C. String s = list.get(0);
    D. list = new ArrayList();
    E. list = new ArrayList();

  • Question 75:

    Given:

    11.

    class Mammal { }

    12.

    13.

    class Raccoon extends Mammal {

    14.

    Mammal m = new Mammal();

    15.

    }

    16.

    17.

    class BabyRaccoon extends Mammal { }

    Which four statements are true? (Choose four.)

    A. Raccoon is-a Mammal.
    B. Raccoon has-a Mammal.
    C. BabyRaccoon is-a Mammal.
    D. BabyRaccoon is-a Raccoon.
    E. BabyRaccoon has-a Mammal.
    F. BabyRaccoon is-a BabyRaccoon.

  • Question 76:

    Given:

    1.

    class TestA {

    2.

    public void start() { System.out.println("TestA"); }

    3.

    }

    4.

    public class TestB extends TestA {

    5.

    public void start() { System.out.println("TestB"); }

    6.

    public static void main(String[] args) {

    7.

    ((TestA)new TestB()).start();

    8.

    }

    9.

    }

    What is the result?

    A. TestA
    B. TestB
    C. Compilation fails.
    D. An exception is thrown at runtime.

  • Question 77:

    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.

  • Question 78:

    Given:

    11.

    static void test() {

    12.

    try {

    13.

    String x = null;

    14.

    System.out.print(x.toString() + " ");

    15.

    }

    16.

    finally { System.out.print("finally "); }

    17.

    }

    18.

    public static void main(String[] args) {

    19.

    try { test(); }

    20.

    catch (Exception ex) { System.out.print("exception "); }

    21.

    }

    What is the result?

    A. null
    B. finally
    C. null finally
    D. Compilation fails.
    E. finally exception

  • Question 79:

    Click the Exhibit button. What is the output if the main() method is run?

    A. 4
    B. 5
    C. 8
    D. 9
    E. Compilation fails.
    F. An exception is thrown at runtime.
    G. It is impossible to determine for certain.

  • Question 80:

    DRAG DROP

    Select and Place:

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.