Question 66
Given
:
What is the correct definition of the JsonField annotation that makes the Point class compile?
A)
B)
C)
Question 67
Given:
It is required that if p instanceof Pairthen p.isValid()returns true.
Which is the smallest set of visibility changes to insure this requirement is met?
Question 68
Given the code fragment:
What is the output?
Question 69
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?
Question 70
Given:
You want to examine the items list it contains an item for which the variable count is below zero.
Which code fragment at line 1 accomplish this?
