Question 107 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 107 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given the code fragment:

List<string> valList = Arrays.asList("", "George", "", “John”, “Jim");

Long newVal = valList.stream() // line ni
-filter(x -> !x.isEmpty())
-count () // Line n2

System. out.print (newval)

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.