Given the code fragment: List<String> nL = Arrays.asList("Jim", "John", "Jeff"); Function<String, String> funVal = s -> "Hello : ".contact(s); nL.Stream() .map(funVal) .peek(System.out::print); What is the result?
Correct answer is C, since peek is an intermediate lazy operation which will not be evaluated unless the pipeline is ended with a terminating operation.
This section is not available anymore. Please use the main Exam Page.1z0-809 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
speed045
Highly Voted 4 years, 1 month agoasdfjhfgjuaDCV
Most Recent 9 months, 3 weeks agosteefaand
10 months, 3 weeks agonikhil_3011
2 years, 11 months agoSvetleto13
3 years, 7 months agoayzo
3 years, 11 months agopridemore
3 years, 10 months agojohnchen88
4 years, 11 months agoInnovation
4 years, 11 months agoDestroyer
4 years, 12 months agoM_Jawad
4 years, 11 months agothetech
5 years ago