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

    Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?

    A. Compilation will succeed for all classes and interfaces.
    B. Compilation of class C will fail because of an error in line 2.
    C. Compilation of class C will fail because of an error in line 6.
    D. Compilation of class AImpl will fail because of an error in line 2.

  • Question 242:

    Given:

    12.

    String csv = "Sue,5,true,3";

    13.

    Scanner scanner = new Scanner( csv );

    14.

    scanner.useDelimiter(",");

    15.

    int age = scanner.nextInt();

    What is the result?

    A. Compilation fails.
    B. After line 15, the value of age is 5.
    C. After line 15, the value of age is 3.
    D. An exception is thrown at runtime.

  • Question 243:

    Given:

    11. public void genNumbers() {

    12. ArrayList numbers = new ArrayList();

    13. for (int i=0; i<10; i++) {

    14. int value = i * ((int) Math.random());

    15. Integer intObj = new Integer(value);

    16. numbers.add(intObj);

    17. }

    18. System.out.println(numbers);

    19. }

    Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?

    A. Line 16
    B. Line 17
    C. Line 18
    D. Line 19
    E. The object is NOT a candidate for garbage collection.

  • Question 244:

    Given:

    11.

    public enum Title {

    12.

    MR("Mr."), MRS("Mrs."), MS("Ms.");

    13.

    private final String title;

    14.

    private Title(String t) { title = t; }

    15.

    public String format(String last, String first) {

    16.

    return title + " " + first + " " + last;

    17.

    }

    18.

    }

    19.

    public static void main(String[] args) {

    20.

    System.out.println(Title.MR.format("Doe", "John"));

    21.

    }

    What is the result?

    A. Mr. John Doe
    B. An exception is thrown at runtime.
    C. Compilation fails because of an error in line 12.
    D. Compilation fails because of an error in line 15.
    E. Compilation fails because of an error in line 20.

  • Question 245:

    DRAG DROP

    Select and Place:

  • Question 246:

    Given:

    1. public class Threads3 implements Runnable {

    2. public void run() {

    3. System.out.print("running");

    4. }

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

    6. Thread t = new Thread(new Threads3());

    7. t.run();

    8. t.run();

    9. t.start();

    10. }

    11. }

    What is the result?

    A. Compilation fails.
    B. An exception is thrown at runtime.
    C. The code executes and prints "running".
    D. The code executes and prints "runningrunning".
    E. The code executes and prints "runningrunningrunning".

  • Question 247:

    Given:

    11.

    public static void main(String[] args) {

    12.

    try {

    13.

    args = null;

    14.

    args[0] = "test";

    15.

    System.out.println(args[0]);

    16.

    } catch (Exception ex) {

    17.

    System.out.println("Exception");

    18.

    } catch (NullPointerException npe) {

    19.

    System.out.println("NullPointerException");

    20.

    }

    21.

    }

    What is the result?

    A. test
    B. Exception
    C. Compilation fails.
    D. NullPointerException

  • Question 248:

    Given:

    11.

    public static void main(String[] args) {

    12.

    Object obj = new int[] { 1, 2, 3 };

    13.

    int[] someArray = (int[])obj;

    14.

    for (int i : someArray) System.out.print(i + " ");

    15.

    }

    What is the result?

    A. 1 2 3
    B. Compilation fails because of an error in line 12.
    C. Compilation fails because of an error in line 13.
    D. Compilation fails because of an error in line 14.
    E. A ClassCastException is thrown at runtime.

  • Question 249:

    Click the Exhibit button. What is the result?

    A. Value is: 8
    B. Compilation fails.
    C. Value is: 12
    D. Value is: -12
    E. The code runs with no output.
    F. An exception is thrown at runtime.

  • Question 250:

    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.