It is more faster and easier to pass the Oracle 1Z0-809 exam by using Top Quality Oracle Java SE 8 Programmer II questuins and answers. Immediate access to the Most up-to-date 1Z0-809 Exam and find the same core area 1Z0-809 questions with professionally verified answers, then PASS your exam with a high score now.


♥♥ 2017 NEW RECOMMEND ♥♥

Free VCE & PDF File for Oracle 1Z0-809 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 1Z0-809 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/1Z0-809-exam-dumps.html

Q1. Given: What is the result? 

A. 100 210 

B. Compilation fails due to an error in line n1 

C. Compilation fails due to an error at line n2 

D. Compilation fails due to an error at line n3 

Answer:


Q2. Given: 

A. X XX 

B. X Y X 

C. Y Y X 

D. Y YY 

Answer:


Q3. Given: 

What is the result? 

A. 2 4 6 8 

B. 2 4 6 8 9 

C. 1 3 5 7 

D. 1 3 5 7 9 

Answer:


Q4. You want to create a singleton class by using the Singleton design pattern. Which two statements enforce the singleton nature of the design? 

A. Make the class static. 

B. Make the constructor private. 

C. Override equals() and hashCode() methods of the java.lang.Object class. 

D. Use a static reference to point to the single instance. 

E. Implement the Serializable interface. 

Answer: A,B 


Q5. Given the code fragment: 

String str = “Java is a programming language”; ToIntFunction<String> indexVal = str: : indexOf; //line n1 int x = indexVal.applyAsInt(“Java”);//line n2 System.out.println(x); 

What is the result? 

A. 0 

B. 1 

C. A compilation error occurs at line n1. 

D. A compilation error occurs at line n2. 

Answer:


Q6. Given the content of /resourses/Message.properties: 

welcome1=”Good day!” 

and given the code fragment: 

Properties prop = new Properties (); 

FileInputStream fis = new FileInputStream (“/resources/Message.properties”); 

prop.load(fis); 

System.out.println(prop.getProperty(“welcome1”)); 

System.out.println(prop.getProperty(“welcome2”, “Test”));//line n1 

System.out.println(prop.getProperty(“welcome3”)); 

What is the result? 

A. Good day! 

Test 

followed by an Exception stack trace 

B. Good day! 

followed by an Exception stack trace 

C. Good day! 

Test 

null 

D. A compilation error occurs at line n1. 

Answer:


Q7. Given the code fragment: 

class CallerThread implements Callable<String> { 

String str; 

public CallerThread(String s) {this.str=s;} 

public String call() throws Exception { 

return str.concat(“Call”); 

and 

public static void main (String[] args) throws InterruptedException, ExecutionException 

ExecutorService es = Executors.newFixedThreadPool(4); //line n1 

Future f1 = es.submit (newCallerThread(“Call”)); 

String str = f1.get().toString(); 

System.out.println(str); 

Which statement is true? 

A. The program prints Call Call and terminates. 

B. The program prints Call Call and does not terminate. 

C. A compilation error occurs at line n1. 

D. An ExecutionException is thrown at run time. 

Answer:


Q8. Given the definition of the Vehicle class: 

Class Vehhicle { 

int distance;//line n1 

Vehicle (int x) { 

this distance = x; 

public void increSpeed(int time) {//line n2 

int timeTravel = time;//line n3 

class Car { 

int value = 0; 

public void speed () { 

value = distance /timeTravel; 

System.out.println (“Velocity with new speed”+value+”kmph”); 

new Car().speed(); 

and this code fragment: 

Vehicle v = new Vehicle (100); 

v.increSpeed(60); 

What is the result? 

A. Velocity with new speed 

B. A compilation error occurs at line n1. 

C. A compilation error occurs at line n2. 

D. A compilation error occurs at line n3. 

Answer:


Q9. Given: 

What is the result? 

A. Null 

B. Compilation fails 

C. An exception is thrown at runtime 

D. 0 

Answer:


Q10. Given: 

public class Customer { 

private String fName; 

private String lName; 

private static int count; 

public customer (String first, String last) {fName = first, lName = last; 

++count;} 

static { count = 0; } 

public static int getCount() {return count; } 

public class App { 

public static void main (String [] args) { 

Customer c1 = new Customer(“Larry”, “Smith”); 

Customer c2 = new Customer(“Pedro”, “Gonzales”); 

Customer c3 = new Customer(“Penny”, “Jones”); 

Customer c4 = new Customer(“Lars”, “Svenson”); 

c4 = null; 

c3 = c2; 

System.out.println (Customer.getCount()); 

What is the result? 

A. 0 

B. 2 

C. 3 

D. 4 

E. 5 

Answer: