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

    Given:

    3. public class Batman {

    4. int squares = 81;

    5. public static void main(String[] args) {

    6. new Batman().go();

    7. }

    8. void go() {

    9. incr(++squares);

    10. System.out.println(squares);

    11. }

    12. void incr(int squares) { squares += 10; }

    13. }

    What is the result?

    A. 81
    B. 82
    C. 91
    D. 92
    E. Compilation fails.
    F. An exception is thrown at runtime.

  • Question 282:

    DRAG DROP

    Select and Place:

  • Question 283:

    Given:

    1.

    public class KungFu {

    2.

    public static void main(String[] args) {

    3.

    Integer x = 400;

    4.

    Integer y = x;

    5.

    x++;

    6.

    StringBuilder sb1 = new StringBuilder("123");

    7.

    StringBuilder sb2 = sb1;

    8.

    sb1.append("5");

    9.

    System.out.println((x==y) + " " + (sb1==sb2));

    10.

    }

    11.

    }

    What is the result?

    A. true true
    B. false true
    C. true false
    D. false false
    E. Compilation fails.
    F. An exception is thrown at runtime.

  • Question 284:

    DRAG DROP

    Select and Place:

  • Question 285:

    Given:

    21.

    class Money {

    22.

    private String country = "Canada";

    23.

    public String getC() { return country; }

    24.

    }

    25.

    class Yen extends Money {

    26.

    public String getC() { return super.country; }

    27.

    }

    28.

    public class Euro extends Money {

    29.

    public String getC(int x) { return super.getC(); }

    30.

    public static void main(String[] args) {

    31.

    System.out.print(new Yen().getC() + " " + new Euro().getC());

    32.

    }

    33.

    }

    What is the result?

    A. Canada
    B. null Canada
    C. Canada null
    D. Canada Canada
    E. Compilation fails due to an error on line 26.
    F. Compilation fails due to an error on line 29.

  • Question 286:

    Click the Exhibit button. Given: ClassA a = new ClassA(); a.methodA(); What is the result?

    A. Compilation fails.
    B. ClassC is displayed.
    C. The code runs with no output.
    D. An exception is thrown at runtime.

  • Question 287:

    Given:

    11.

    public class Test {

    12.

    public static void main(String [] args) {

    13.

    int x = 5;

    14.

    boolean b1 = true;

    15.

    boolean b2 = false;

    16.

    17.

    if ((x == 4) andand !b2 )

    18.

    System.out.print("1 ");

    19.

    System.out.print("2 ");

    20.

    if ((b2 = true) andand b1 )

    21.

    System.out.print("3 ");

    22.

    }

    23.

    }

    What is the result?

    A. 2
    B. 3
    C. 1 2
    D. 2 3
    E. 1 2 3
    F. Compilation fails.
    G. An exception is thrown at runtime.

  • Question 288:

    Given:

    33.

    try {

    34.

    // some code here

    35.

    } catch (NullPointerException e1) {

    36.

    System.out.print("a");

    37.

    } catch (Exception e2) {

    38.

    System.out.print("b");

    39.

    } finally {

    40.

    System.out.print("c");

    41.

    }

    If some sort of exception is thrown at line 34, which output is possible?

    A. a
    B. b
    C. c
    D. ac
    E. abc

  • Question 289:

    Given:

    3.

    public class Breaker {

    4.

    static String o = "";

    5.

    public static void main(String[] args) {

    6.

    z:

    7.

    o = o + 2;

    8.

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

    9.

    if(x==4) break;

    10.

    if(x==6) break z;

    11.

    o = o + x;

    12.

    }

    13.

    System.out.println(o);

    14.

    }

    15.

    }

    What is the result?

    A. 23
    B. 234
    C. 235
    D. 2345
    E. 2357
    F. 23457
    G. Compilation fails.

  • Question 290:

    Given:

    11.

    public class Commander {

    12.

    public static void main(String[] args) {

    13.

    String myProp = /* insert code here */

    14.

    System.out.println(myProp);

    15.

    }

    16.

    }

    and the command line: java -Dprop.custom=gobstopper Commander

    Which two placed on line 13, will produce the output gobstopper? (Choose two.)

    A. System.load("prop.custom");
    B. System.getenv("prop.custom");
    C. System.property("prop.custom");
    D. System.getProperty("prop.custom");
    E. System.getProperties().getProperty("prop.custom");

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.