Oracle 1Z0-804 Certification Sample Questions and Answers

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

This sample Oracle 1Z0-804 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-804 Certification Practice Exam for Java SE 7 Programmer II (1Z0-804) 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-804 Certification Practice Exam to clear your actual Oracle 1Z0-804 Certification Exam with great score.

1Z0-804 Sample Questions:

01. Sam has designed an application. It segregates tasks that are critical and executed frequently from tasks that are non critical and executed less frequently. He has prioritized these tasks based on their criticality and frequency of execution. After close scrutiny, he finds that the tasks designed to be non critical are rarely getting executed. From what kind of problem is the application suffering?
a) race condition
b) starvation
c) deadlock
d) livelock
02. Given the fragment:
public class CustomerApplication {
public static void main (String args[]) {
CustomerDAO custDao= new CustomerDAOMemoryImpl(); // Line 3
// … other methods
Which two valid alternatives to line 3 would decouple this application from a specific implementation of CustomerDAO?
a) CustomerDAO custDao = CustomerDAO();
b) CustomerDAO custDao = (CustomerDAO) new Object ();
c) CustomerDAO custDao = CustomerDAO.getInstance();
d) CustomerDAO custDao = (CustomerDAO) new CustomerDAOmemoryImp1();
e) CustomerDAO custDao = customerDAOFactory.getInstance();
03. Given:
public abstract class Account {
abstract void deposit (double amt);
public abstract Boolean withdraw (double amt);
public class CheckingAccount extends Account {
What two changes, made independently, will enable the code to compile?
a) Change the signature of Account to: public class Account.
b) Change the signature of CheckingAccount to: public abstract CheckingAccount
c) Implement private methods for deposit and withdraw in CheckingAccount.
d) Implement public methods for deposit and withdraw in CheckingAccount.
e) Change Signature of checkingAccount to: CheckingAccount implements Account.
f) Make Account an interface.
04. Given the code fragment:
1. Thread t1 = new Thread ();
2. t1.start ()
3. t1.join ( );
4. // . . .
Which three are true?
a) On line 3, the current thread stops and waits until the t1 thread finishes.
b) On line 3, the t1 thread stops and waits until the current thread finishes.
c) On line 4, the t1 thread is dead.
d) On line 4, the t1 thread is waiting to run.
e) This code cannot throw a checked exception.
f) This code may throw a checked exception.
05. For which three objects must a vendor provide implementations in its JDBC driver?
a) Time
b) Date
c) Statement
d) ResultSet
e) Connection
f) SQLException
g) DriverManager
06. A valid reason to declare a class as abstract is to:
a) define methods within a parent class, which may not be overridden in a child class
b) define common method signatures in a class, while forcing child classes to contain unique method implementations
c) prevent instance variables from being accessed
d) prevent a class from being extended
e) define a class that prevents variable state from being stored when object Instances are serialized
f) define a class with methods that cannot be concurrently called by multiple threads
07. Which is a factory method from the java.text.NumberFormat class?
a) format (long number)
b) getInstance()
c) getMaxiraumFractionDigits ()
d) getAvailableLocales ()
e) isGroupingUsed()
08. Which two statements are true about Rowset subinterfaces?
a) A JdbcRowSet object provides a JavaBean view of a result set.
b) A cachedRowset provides a connected view of the database.
c) A FilteredRowSet object filter can be modified at any time.
d) A webRowset returns JSON-formatted data.
09. Given:
String s = new String("3"); System.out.print(1 + 2 + s + 4 + 5); 
What is the result?
a) 54321
b) 9321
c) 5433
d) 933
e) Compilation fails.
10. You have been asked to create a ResourceBundle file to localize an application. Which code example specifies valid keys menu1 and manu2 with values of File Menu and ViewMenu?
a) <key name ="menu1">File Menu</key>
<key name ="menu1">View Menu</key>
b) <key> menu1</key><File Menu>File Menu </value>
<key> menu1</key><File Menu>View Menu </value>
c) menu1m File menu, menu2, view menu
d) menu1 = File Menu menu2 = View Menu



Answer: c


Answer: c, e


Answer: b, f


Answer: a, c, f


Answer: c, d, e


Answer: b


Answer: b


Answer: a, c


Answer: e


Answer: d

Rating: 5 / 5 (2 votes)