Given:
Which three actions implement Java SE security guidelines? (Choose three.)
Your organization makes mlib.jar available to your cloud customers. While working on a code cleanup project for mlib.jar, you see this method by customers:
What security measures should be added to this method so that it meets the requirements for a customer accessible method?
Given:
You want to obtain the Stream object on reading the file. Which code inserted on line 1 will accomplish this?
Given:
and
Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?
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?