Free 1z1-819 Questions for Oracle Java SE 11 Developer 1z1-819 Exam as PDF & Practice Test Engine
Given:
List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?

List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?

Correct Answer: C
Vote an answer
Given:

executed using command:
java Hello "Hello World" Hello World
What is the output?

executed using command:
java Hello "Hello World" Hello World
What is the output?
Correct Answer: E
Vote an answer
Given:
LocalDate d1 = LocalDate.of(1997,2,7);
DateTimeFormatter dtf =
DateTimeFormatter.ofPattern( /*insert code here*/ );
System.out.println(dtf.format (d1));
Which pattern formats the date as Friday 7th of February 1997?
LocalDate d1 = LocalDate.of(1997,2,7);
DateTimeFormatter dtf =
DateTimeFormatter.ofPattern( /*insert code here*/ );
System.out.println(dtf.format (d1));
Which pattern formats the date as Friday 7th of February 1997?
Correct Answer: B
Vote an answer
Given the code fragment:
Which two code snippets inserted independently inside print method print Mondial: domainmodal?
Which two code snippets inserted independently inside print method print Mondial: domainmodal?
Correct Answer: A,D
Vote an answer
Given:

What is the result?

What is the result?
Correct Answer: E
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
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?
Correct Answer: C
Vote an answer
Given the code fragment:

Which code fragment replaces the for statement?

Which code fragment replaces the for statement?
Correct Answer: B
Vote an answer
Given:
List<String> list1 = new ArrayList<>();
list1.add("A");
list1.add("B");
List list2 = List.copyOf(list1);
list2.add("C");
List<List<String>> list3 = List.of(list1, list2);
System.out.println(list3);
What is the result?
List<String> list1 = new ArrayList<>();
list1.add("A");
list1.add("B");
List list2 = List.copyOf(list1);
list2.add("C");
List<List<String>> list3 = List.of(list1, list2);
System.out.println(list3);
What is the result?
Correct Answer: B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Given the code fragment:

You want to validate a path name before the read file. Before validation, all path names should be canonicalized.
Which code inserted on line nl will accomplish this?

You want to validate a path name before the read file. Before validation, all path names should be canonicalized.
Which code inserted on line nl will accomplish this?
Correct Answer: B
Vote an answer
Which two statements are true about a class that is marked @Deprecated?
Correct Answer: B,C
Vote an answer
0
0
0
10



