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

    What is the minimum SQL standard that a JDBC API implementation must support?

    A. SQL-92
    B. SQL 99
    C. SQL-2003
    D. JDBC 4.0

  • Question 62:

    Given the code fragment:

    public static void main(String[] args)

    { Path dir = Paths.get("d:\\company");

    // insert code here. Line **

    for (Path entry: stream)

    { System.out.println(entry.getFileName()

    );

    }

    } catch (IOException e) {

    System.err.println("Caught IOException: " + e.getMessage());

    }

    }

    Which two try statements, when inserted at line 11, enable you to print files with the extensions.java, .htm, end and .jar.

    A. try (DirectoryStream stream =Files.newDirectoryStream(dir, "*.{java, htm, jar}")) {
    B. try (DirectoryStream stream =Files.newDirectoryStream(dir, "*.[java, htm, jar"] }} {
    C. try (DirectoryStream stream =Files.newDirectoryStream(dir, "*.{java*, htm*, jar*}"}} {
    D. try (DirectoryStream stream =Files.newDirectoryStream(dir, "**.{java, htm, jar}")) {

  • Question 63:

    Given the fragment:

    public class CustomerApplication {

    public static void main (String [] args) {

    CustomerDAO custDao = new CustomerDAOMemoryImp1 ();

    // . . . other methods

    }

    }

    Which two valid alternatives to line 3 would decouple this application from a specific implementation of customerDAO?

    A. CustomerDAO custDao = new customerDAO();
    B. CustomerDAO custDao = (CustomerDAO) new object();
    C. CustomerDAO custDao = CustomerDAO.getInstance();
    D. CustomerDAO custDao = (CustomerDAO) new CustomerDAOmemoryImp1();
    E. CustomerDAO custDao = CustomerDAOFactory.getInstance();

  • Question 64:

    What design pattern does the Drivermanager.getconnection () method characterize?

    A. DAO
    B. Factory
    C. Singleton
    D. composition

  • Question 65:

    Which five items are provided by the Java concurrency utilities?

    A. High-performance, flexible thread pools
    B. Dynamic adjustment of thread priorities
    C. Collection classes designed for concurrent access
    D. Atomic variables
    E. synchronized wrappers for collection classes in the java.util package,
    F. Asynchronous execution of tasks
    G. Counting semaphores
    H. Concurrent collection sorting implementations

  • Question 66:

    Given the code fragment: public static void processFile () throws IOException { Try (FileReader fr = new FileReader ("logfilesrc.txt"); FileWriter fw = new FileWriter ("logfilesdst.txt") ) { int i = fr.read(); } } Which statement is true?

    A. The code fragment contains compilation errors.
    B. The java runtime automatically closes the FileWriter Instance first and the FileReader instance next.
    C. The java runtime automatically closes the FileReader Instance first and the FileWriter instance next.
    D. The developer needs to close the FileReader instance first and the FileWriter instance explicitly in a catch block.
    E. The Java runtime may close the FileReader and FileWriter instance in an intermediate manner. Developers should not rely on the order in which they are closed.

  • Question 67:

    Given:

    public class DAOManager {

    public AccountDAO getAccountDAO() {

    return new AccountJDBCDAO();

    }

    }

    Which design pattern best describes the class?

    A. Singleton
    B. DAO
    C. Factory
    D. Composition

  • Question 68:

    Which code fragment is required to load a JDBC 3.0 driver?

    A. DriverManager.loadDriver("org.xyzdata.jdbc.network driver");
    B. Class.forname ("org.xyzdata.jdbc.NetWorkDriver");
    C. Connection con = Connection.getDriver ("jdbc:xyzdata: //localhost:3306/EmployeeDB");
    D. Connection con = Drivermanager.getConnection ("jdbc:xyzdata: //localhost:3306/EmployeeDB");

  • Question 69:

    Which is true regarding the java.nio.file.Path Interface?

    A. The interface extends WatchService interface
    B. Implementations of this interface are immutable.
    C. Implement at ions of this interface arc not safe for use by multiple concurrent threads.
    D. Paths associated with the default provider are not interoperable with the

  • Question 70:

    Given:

    public class StringApp {

    public static void main(String[] args) {

    String[] str="Java SE,java EE,Java ME,java FX".split(",");

    int count=0;

    for(int i=0;i

    switch(str[i]) { case

    "Java SE":

    count++; continue;

    case "Java EE":

    count++; break;

    case "Java ME":

    count++; break;

    case "Java FX":

    count++; break;

    }

    }

    System.out.println("Total match found="+count);

    }

    }

    What is the result?

    A. 1
    B. 2
    C. 3
    D. 4

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.