Oracle 1Z0-805 Certification Sample Questions and Answers

1Z0-805 PDF, 1Z0-805 Dumps PDF Free Download, 1Z0-805 Dumps Free, 1Z0-805 Latest Dumps PDF, 1Z0-805 PDF Free DownloadThe Oracle 1Z0-805 Sample Question Set is designed to help you prepare for the Upgrade to Java SE 7 Programmer (1Z0-805) certification exam. To become familiar with actual Oracle Certification exam environment, we suggest you to try Sample Oracle 1Z0-805 Certification Practice Exam.

This sample Oracle 1Z0-805 certification practice exam is designed for evaluation purposes only. If you really want to test your knowledge to identify your weak areas and familiarize with actual exam format, we suggest you to practice with Premium Oracle 1Z0-805 Certification Practice Exam for Upgrade to Java SE 7 Programmer (1Z0-805) certification. Our team of Java experts have designed Questions-Answers for this premium practice exam by collecting inputs from recently certified candidates. Hence, We strongly recommend you to use Premium Oracle 1Z0-805 Certification Practice Exam to clear your actual Oracle 1Z0-805 Certification Exam with great score.

1Z0-805 Sample Questions:

01. Implementing which method will properly extend java.util.ListResourceBundle?
a) getContents()
b) addResources()
c) getBundle()
d) getKeys()
1. import java.util.*;
2. public class Forever {
3. public static void main(String[] args) {
4. List x1 = new ArrayList();
5. List x2 = new ArrayList<>();
6. }
7. }
What happens when you compile the code?
a) Compilation succeeds.
b) Compilation fails due to multiple errors.
c) Compilation fails due to an error on line 4.
d) Compilation fails due to an error on line 5. 
03. 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.
04. Which method can be used for establishing a connection to a JDBC 4.1 data source?
a) Class.getConnection()
b) DriverManager.forName()
c) DriverManager.getConnection()
d) DriverManager.registerDriver()
05. Which is most closely associated with the object-oriented design concept known as "has-a"?
a) DAO
b) factory
c) adapter
d) composition
06. Given this code fragment:
// assume "myURL" is a valid URL
// assume that the initial value of a saving account is 0
try {
 Connection conn = DriverManager.getConnection(myURL);
 Statement s = conn.createStatement();
 // execute SQL to add 100 to the account
 // execute more SQL to add 300 to the account
} catch (Exception e) {
What is the result?
a) An exception is thrown at runtime.
b) The account's value is not changed.
c) The account's value is incremented by 300.
d) The account's value is incremented by 400. 
07. Which two statements are true regarding the try with resources statement?
a) The resources declared in a try with resources statement are not closed automatically if an exception occurs inside the try block.
b) In a try with resources statement, any catch or finally block is run after the resources have been closed.
c) The close methods of resources are called in the reverse order of their creation.
d) All the resources must implement the interface.
08. Given
import java.util.*;
public class MyDates {
 public static void main(String[] args) {
 Calendar c = Calendar.getInstance(); // Line A
Which two statements are true?
a) Line A is an example of using the DAO pattern.
b) Line A is an example of using the factory pattern.
c) Line A is an example of using the singleton pattern.
d) java.util.Calendar could be an abstract class.
e) Line A could be replaced with: Calendar c = new Calendar();
09. 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
10. Given:
class MyResource1 implements AutoCloseable {
 public void close()throws IOException{ // A1
 System.out.print("1 "); }
class MyResource2 implements Closeable {
 public void close()throws Exception { // A2
 System.out.print("2 "); }
public class Triangle {
 public static void main(String[] args) throws IOException{
 try ( MyResource1 r1 = new MyResource1(); // B1
 MyResource2 r2 = new MyResource2();) { // B2
 System.out.print("t ");
 finally {
 System.out.print("f ");
What is the result?
a) t 2 1 f
b) t 1 2 f
c) Compilation fails due to errors on lines A1 and B1.
d) Compilation fails due to errors on lines A2 and B2.



Answer: a


Answer: a


Answer: f


Answer: c


Answer: d


Answer: d


Answer: b, d


Answer: b, d


Answer: a, d


Answer: d


Rating: 4.9 / 5 (36 votes)