Oracle 1Z0-809 ExamJava SE 8 Programmer II

Total Question: 128 Last Updated: January 15,2018
  • Updated 1Z0-809 Dumps
  • Based on Real 1Z0-809 Exams Scenarios
  • Free 1Z0-809 pdf Demo Available
  • Check out our 1Z0-809 Dumps in a new PDF format
  • Instant 1Z0-809 download
  • Guarantee 1Z0-809 success in first attempt
Package Select:

Questions & Answers PDF

Practice Test Software

Practice Test + PDF 30% Discount

Price: $65.95 $29.99

Buy Now Free Trial

A Review Of Validated 1Z0-809 preparation labs

Exam Code: 1Z0-809 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Java SE 8 Programmer II
Certification Provider: Oracle
Free Today! Guaranteed Training- Pass 1Z0-809 Exam.

Q31. Given the code fragment: 

Which code fragment prints blue, cyan, ? A. Option A 

B. Option B 

C. Option C 

D. Option D 


Q32. Given: 

public class Foo<K, V> { 

private K key; 

private V value; 

public Foo (K key, V value) (this.key = key; this value = value;) 

public static <T> Foo<T, T> twice (T value) (return new Foo<T, T> (value, value); ) 

public K getKey () (return key;) 

public V getValue () (return value;) 

Which option fails? 

A. Foo<String, Integer> mark = new Foo<String, Integer> (“Steve”, 100); 

B. Foo<String, String> pair = Foo.<String>twice (“Hello World!”); 

C. Foo<?, ?> percentage = new Foo <> (97, 32); 

D. Foo<String, String> grade = new Foo <> (“John”, “A”); 


Q33. Which two statements are true for a two-dimensional array? 

A. It is implemented as an array of the specified element type. 

B. Using a row by column convention, each row of a two-dimensional array must be of the same size. 

C. At declaration time, the number of elements of the array in each dimension must be specified. 

D. All methods of the class Object may be invoked on the two-dimensional array. 

Answer: A,D 

Q34. Given: 

public class Book { 

private String read(String bname) { return “Read” + bname } 

public class EBook extends Book { 

public class String read (String url) { return “View” + url } 

public class Test { 

public static void main (String[] args) { 

Book b1 = new Book();“Java Programing”); 

Book b2 = new EBook();“”); 

What is the result? 

A. Read Java Programming View http:/ 

B. Read Java Programming Read http:/ 

C. The file fails to compile. 

D. The file fails to compile. 


Q35. Given: 

What is the result? 

A. Good Day! Good Luck! 

B. Good Day! Good Day! 

C. Good Luck! Good Day! 

D. Good Luck! Good Luck! 

E. Compilation fails 


Q36. Given: 

What is the result? 

A. Null 

B. Compilation fails 

C. An exception is thrown at runtime 

D. 0 


Q37. Given the code fragment: 

public class FileThread implements Runnable { 

String fName; 

public FileThread(String fName) { this.fName = fName; } 

public void run () System.out.println(fName);} 

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

ExecutorService executor = Executors.newCachedThreadPool(); 

Stream<Path> listOfFiles = Files.walk(Paths.get(“Java Projects”)); 

listOfFiles.forEach(line -> { 

executor.execute(new FileThread(line.getFileName().toString())); // 

line n1 



executor.awaitTermination(5, TimeUnit.DAYS);// 

line n2 

The Java Projects directory exists and contains a list of files. 

What is the result? 

A. The program throws a runtime exception at line n2. 

B. The program prints files names concurrently. 

C. The program prints files names sequentially. 

D. A compilation error occurs at line n1. 


Q38. Given the definition of the Emp class: 

public class Emp 

private String eName; 

private Integer eAge; 

Emp(String eN, Integer eA) { 

this.eName = eN; 

this.eAge = eA; 

public Integer getEAge () {return eAge;} 

public String getEName () {return eName;} 

and code fragment: 

List<Emp>li = Arrays.asList(new Emp(“Sam”, 20), New Emp(“John”, 60), New Emp(“Jim”, 


Predicate<Emp> agVal = s -> s.getEAge() > 50;//line n1 

li =; 

Stream<String> names =;//line n2 

names.forEach(n -> System.out.print(n + “ “)); 

What is the result? 

A. Sam John Jim 

B. John Jim 

C. A compilation error occurs at line n1. 

D. A compilation error occurs at line n2. 


Q39. Which two are Java Exception classes? 

A. SercurityException 

B. DuplicatePathException 

C. IllegalArgumentException 

D. TooManyArgumentsException 

Answer: A,C 

Q40. Given: 

class Book { 

int id; 

String name; 

public Book (int id, String name) { = id; = name; 

public boolean equals (Object obj) { //line n1 

boolean output = false; 

Book b = (Book) obj; 

if ( name))} 

output = true; 

return output; 

and the code fragment: 

Book b1 = new Book (101, “Java Programing”); 

Book b2 = new Book (102, “Java Programing”); 

System.out.println (b1.equals(b2)); //line n2 

Which statement is true? 

A. The program prints true. 

B. The program prints false. 

C. A compilation error occurs. To ensure successful compilation, replace line n1 with: boolean equals (Book obj) { 

D. A compilation error occurs. To ensure successful compilation, replace line n2 with: System.out.println (b1.equals((Object) b2)); 


Related 1Z0-809 Articles