最新的Oracle Java SE 11 Developer - 1z1-819免費考試真題
問題1
Given:

You want to calculate the average of the Player's score.
Which statement inserted on line 1 will accomplish this?

You want to calculate the average of the Player's score.
Which statement inserted on line 1 will accomplish this?
正確答案: D
問題2
Given the code fragment from Box. Java:

Given the code fragment from item.java:

Given the information:
The classes Box and items are encapsulated with getters and setters methods. The classes Box and Item contains required constructors source code.
and the code fragment:

Which action serializes the b1 object?

Given the code fragment from item.java:

Given the information:
The classes Box and items are encapsulated with getters and setters methods. The classes Box and Item contains required constructors source code.
and the code fragment:

Which action serializes the b1 object?
正確答案: C
問題3
Given:

Which three are true? (Choose three.)

Which three are true? (Choose three.)
正確答案: A,D,E
問題4
Given:

Which code fragment on line 1 makes the m map contain the employee with the highest salary for each neighborhood?

Which code fragment on line 1 makes the m map contain the employee with the highest salary for each neighborhood?
正確答案: D
問題5
Given:

What is the result?

What is the result?
正確答案: B
問題6
Given:

When is the readObject method called?

When is the readObject method called?
正確答案: E
問題7
Given:

Which two independent changes will make the Main class compile? (Choose two.)

Which two independent changes will make the Main class compile? (Choose two.)
正確答案: A,D
說明:(僅 VCESoft 成員可見)
問題8
Given the declaration:

Examine this code fragment:
/* Loc1 */ class ProcessOrders { ... }
Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)

Examine this code fragment:
/* Loc1 */ class ProcessOrders { ... }
Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)
正確答案: B,C
問題9
Given:

executed using this command:
java Myclass My Car is red
What is the output of this class?

executed using this command:
java Myclass My Car is red
What is the output of this class?
正確答案: D
問題10
Which three guidelines are used to protect confidential information? (Choose three.)
正確答案: C,D,G
問題11
Given:

What is the result?

What is the result?
正確答案: A
問題12
Given:

It is required that if p instanceof Pair then p.isValid() returns true.
Which is the smallest set of visibility changes to insure this requirement is met?

It is required that if p instanceof Pair then p.isValid() returns true.
Which is the smallest set of visibility changes to insure this requirement is met?
正確答案: B
問題13
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?

正確答案: C
問題14
Given:

What is the result?

What is the result?
正確答案: E

