1Z0-805 Exam Details

  • Exam Code
    :1Z0-805
  • Exam Name
    :Upgrade to Java SE 7 Programmer
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :90 Q&As
  • Last Updated
    :Dec 09, 2021

Oracle 1Z0-805 Online Questions & Answers

  • Question 81:

    Given this code fragment:

    ResultSet rs = null;

    try (Connection conn = DriverManager. getConnection (url) )

    { Statement stmt = conn.createStatement();

    rs stmt.executeQuery(query);

    //-.. other methods }

    } catch (SQLException se)

    { System.out.println ("Error");

    }

    Which object is valid after the try block runs?

    A. The Connection object only
    B. The Statement object only
    C. The Result set object only
    D. The Statement and Result Set object only
    E. The connection, statement, and ResultSet objects
    F. Neither the Connection, Statement, nor ResultSet objects

  • Question 82:

    Which two file attribute views support reading or updating the owner of a file?

    A. AclFileAttributeView
    B. DosFileAttributeView
    C. FileOwnerAttributeView
    D. FileStoreAttributeView
    E. BasicFileAttributeView

  • Question 83:

    Which two descriptions are benefits of using PreparedStatement objects over static SQL in JDBC?

    A. Conversion to native SQL
    B. Supports BLOB types on every type of database
    C. Prevention of SQL injection attacks
    D. Improved performance from frequently run SQL queries
    E. Built in support for multi database transaction semantics

  • Question 84:

    Which method or methods should you implement to create your own implementation of the java.nio.file.PathMatcher interface?

    A. matches(Path)
    B. matches(Path), fails(Path)
    C. matches(Path) , fails(Path), enable(boolean)
    D. matches(Path) , fails(Path) , setPreferred (String)

  • Question 85:

    Given the code fragment:

    SimpleDateFormat sdf;

    Which code fragment displays the three-character month abbreviation?

    A. sdf = new SimpleDateFormat ("mm", Locale.UK); System.out.println ("Result:"+ sdf.format(new Date()));
    B. sdf = new SimpleDateFormat ("MM", Locale.UK); System.out.println ("Result:"+ sdf.format(new Date()));
    C. sdf = new SimpleDateFormat ("MMM", Locale.UK); System.out.println ("Result:"+ sdf.format(new Date()));
    D. sdf = new SimpleDateFormat ("MMMM", Locale.UK); System.out.println ("Result:"+ sdf.format(new Date()));

  • Question 86:

    Given:

    class Fibonacci extends RecursiveTask {

    final int n;

    Fibonacci (int n) { this.n = n }

    Integer compute () {

    if (n <= 1)

    return n;

    Fibonacci f1 = new Fibonacci (n ?1);

    f1.fork;

    Fibonacci f2 = new Fibonacci (n ?2);

    return f2.compute() + f1.join; // Line **

    }

    }

    Assume that line ** is replaced with:

    return f1.join() + f2.compute(); // Line **

    What is the likely result?

    A. The program produces the correct result, with similar performance to the original.
    B. The program produces the correct result, with performance degraded to the equivalent of being single-threaded.
    C. The program produces an incorrect result.
    D. The program goes into an infinite loop.
    E. An exception is thrown at runtime.
    F. The program produces the correct result, with better performance than the original.

  • Question 87:

    Given:

    What two changes should you make to apply the DAO pattern to this class?

    A. Make the customer class abstract.
    B. Make the customer class an interface.
    C. Move the add, delete, find, and update methods into their own implementation class.
    D. Create an interface that defines the signatures of the add, delete, find and update command.
    E. Make the add, delete, find, and update methods private for encapsulation.
    F. Make the getName and getId methods private fir encapsulation.

  • Question 88:

    Which statement is true about the take method defined in the WatchService interface?

    A. Retrieves and removes the next watch key, or returns null of none are present.
    B. Retrieves and removes the next watch key. If a queued key is not immediately available, the program waits for the specified wait time.
    C. Retrieves and removes the next watch key: waits if no key is yet present.
    D. Retrieves and removes all pending events for the watch key, returning a list of the events that were retrieved.

  • Question 89:

    Which three enum constants are defined in FilevisitResult?

    A. CONTINUE
    B. SKIP_SIBLINGS
    C. FOLLOW_LINKS
    D. TERMINATE
    E. NOFOLLOW_LINKS
    F. DELETE_CHILD

  • Question 90:

    How many Threads are created when passing tasks to an Executor Instance?

    A. A new Thread is used for each task.
    B. A number of Threads equal to the number of CPUs is used to execute tasks.
    C. A single Thread is used to execute all tasks.
    D. A developer-defined number of Threads Is used to execute tasks.
    E. A number of Threads determined by system load is used to execute tasks.
    F. The method used to obtain the Executor determines how many Threads are used to execute tasks.

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