Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-809 Topic 8 Question 60 Discussion

Actual exam question for Oracle's 1Z0-809 exam
Question #: 60
Topic #: 8
[All 1Z0-809 Questions]

Given the code fragment:

List nL = Arrays.asList(''Jim'', ''John'', ''Jeff'');

Function funVal = s -> ''Hello : ''.contact(s);

nL.Stream()

.map(funVal)

.peek(System.out::print);

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Christiane
7 days ago
Hmm, the stream processing looks pretty straightforward. I think I'll go with option A.
upvoted 0 times
...
Carylon
25 days ago
I'm not sure, but I think the answer might be D) A compilation error occurs because there is a syntax error in the code fragment.
upvoted 0 times
...
Stephaine
27 days ago
I agree with Rolande, because the code fragment uses map and peek functions to apply the funVal function to each element in the stream.
upvoted 0 times
...
Rolande
28 days ago
I think the answer is A) Hello : Jim Hello : John Hello : Jeff
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77