1Z0-809 practice question 6 of 25

Given the code fragment:List<String> empDetails = Arrays.asList(“100, Robin, HR”,“200, Mary, AdminServices”,“101, Peter…

Choose your answer, then check it against the explanation.

Given the code fragment:

List<String> empDetails = Arrays.asList(“100, Robin, HR”,

“200, Mary, AdminServices”,

“101, Peter, HR”);

empDetails.stream()

.filter(s-> s.contains(“1”))

.sorted()

.forEach(System.out::println); //line n1

What is the result?

Answer options
Question 6 of 25

Keep practicing

Take the free 1Z0-809 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other 1Z0-809 practice questions

Scroll to Top