1Z0-819 Exam Question 31
A bookstore's sales are represented by a list of Sale objects populated with the name of the customer and the books they purchased.
public class Sale {
private String customer;
private List<Book> items;
// constructor, setters and getters not shown
}
public class Book {
private String name;
private double price;
// constructor, setters and getters not shown
}
Given a list of Sale objects, tList, which code fragment creates a list of total sales for each customer in ascending order?

public class Sale {
private String customer;
private List<Book> items;
// constructor, setters and getters not shown
}
public class Book {
private String name;
private double price;
// constructor, setters and getters not shown
}
Given a list of Sale objects, tList, which code fragment creates a list of total sales for each customer in ascending order?

1Z0-819 Exam Question 32
Which two modules include APIs in the Java SE Specification? (Choose two.)
1Z0-819 Exam Question 33
Given the code fragment:

What is the result?

What is the result?
1Z0-819 Exam Question 34
Which code fragment compiles?


1Z0-819 Exam Question 35
Given:

What is the result?

What is the result?


