New Year Special 75% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 75brite

Oracle Updated 1z0-809 Exam Questions and Answers by zayne

Page: 13 / 15

Oracle 1z0-809 Exam Overview :

Exam Name: Java SE 8 Programmer II
Exam Code: 1z0-809 Dumps
Vendor: Oracle Certification: Java SE
Questions: 208 Q&A's Shared By: zayne
Question 52

Given the code fragments:

public class Book implements Comparator {

String name;

double price;

public Book () {}

public Book(String name, double price) {

this.name = name;

this.price = price;

}

public int compare(Book b1, Book b2) {

return b1.name.compareTo(b2.name);

}

public String toString() {

return name + “:” + price;

}

}

and

Listbooks = Arrays.asList (new Book (“Beginning with Java”, 2), new book (“A

Guide to Java Tour”, 3));

Collections.sort(books, new Book());

System.out.print(books);

What is the result?

Options:

A.

[A Guide to Java Tour:3.0, Beginning with Java:2.0]

B.

[Beginning with Java:2, A Guide to Java Tour:3]

C.

A compilation error occurs because the Book class does not override the abstract method compareTo().

D.

An Exception is thrown at run time.

Discussion
Question 53

Given the code fragment:

List list1 = Arrays.asList(10, 20);

List list2 = Arrays.asList(15, 30);

//line n1

Which code fragment, when inserted at line n1, prints 10 20 15 30?

Options:

A.

Stream.of(list1, list2).flatMap(list -> list.stream()).forEach(s -> System.out.print(s + “ “));

B.

Stream.of(list1, list2).flatMap(list -> list.intStream()).forEach(s -> System.out.print(s + “ “));

C.

list1.stream().flatMap(list2.stream().flatMap(e1 -> e1.stream()).forEach(s -> System.out.println(s + “ “));

D.

Stream.of(list1, list2).flatMapToInt(list -> list.stream()).forEach(s -> System.out.print(s + “ “));

Discussion
Question 54

What is true about the java.sql.Statement interface?

Options:

A.

It provides a session with the database.

B.

It is used to get an instance of a Connection object by using JDBC drivers.

C.

It provides a cursor to fetch the resulting data.

D.

It provides a class for executing SQL statements and returning the results.

Discussion
Question 55

Given the code fragment:

List nL = Arrays.asList(“Jim”, “John”, “Jeff”);

Function funVal = s -> “Hello : “.contact(s);

nL.Stream()

.map(funVal)

.peek(System.out::print);

What is the result?

Options:

A.

Hello : Jim Hello : John Hello : Jeff

B.

Jim John Jeff

C.

The program prints nothing.

D.

A compilation error occurs.

Discussion
Vienna
I highly recommend them. They are offering exact questions that we need to prepare our exam.
Jensen Dec 17, 2025
That's great. I think I'll give Cramkey a try next time I take a certification exam. Thanks for the recommendation!
Mylo
Excellent dumps with authentic information… I passed my exam with brilliant score.
Dominik Dec 26, 2025
That's amazing! I've been looking for good study material that will help me prepare for my upcoming certification exam. Now, I will try it.
Peyton
Hey guys. Guess what? I passed my exam. Thanks a lot Cramkey, your provided information was relevant and reliable.
Coby Dec 1, 2025
Thanks for sharing your experience. I think I'll give Cramkey a try for my next exam.
Andrew
Are these dumps helpful?
Jeremiah Dec 22, 2025
Yes, Don’t worry!!! I'm confident you'll find them to be just as helpful as I did. Good luck with your exam!
Page: 13 / 15

1z0-809
PDF

$26.25  $104.99

1z0-809 Testing Engine

$31.25  $124.99

1z0-809 PDF + Testing Engine

$41.25  $164.99