Exam Details

  • Exam Code
    :1Z0-819
  • Exam Name
    :Java SE 11 Developer
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :315 Q&As
  • Last Updated
    :May 21, 2025

Oracle Oracle Certifications 1Z0-819 Questions & Answers

  • Question 181:

    Given:

    Which expression when added at line 1 will produce the output of 1.17?

    A. float z = (float)(Math.round((float)x/y*100)/100);

    B. float z = Math.round((int)(x/y),2);

    C. float z = Math.round((float)x/y,2);

    D. float z = Math.round((float)x/y*100)/(float)100;

  • Question 182:

    Given the code fragment: What is the result?

    A. An ArrayIndexOutofBoundsException is thrown at runtime.

    B. The compilation fails.

    C. gh ij kl

    D. gj hk il

    E. ghi jkl

  • Question 183:

    Given:

    When run and all three files exist, what is the state of each reader on Line 1?

    A. All three readers are still open.

    B. All three readers have been closed.

    C. The compilation fails.

    D. Only reader1 has been closed.

  • Question 184:

    Given:

    Which statement on line 1 enables this code to compile?

    A. Consumer function = (String f) -> (System.out.println(f);};

    B. Supplier function = () -> fruits.get (0);

    C. Predicate function = a -> a.equals("banana");

    D. Function function = x -> x.substring(0,2);