Answer is C.
Stream.of() gives Stream<Integer> or Stream<Double>, not IntStream or DoubleStream. So A and C are incorrect.
And Stream hat no method average(). So D is incorrect too.
The answer is letter b, it cannot be C using the method in the second line "getAsDouble()".
upvoted 1 times
...
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.
Chiraj
Highly Voted 3 years, 11 months agoAbdullah_Rahahleah
Highly Voted 4 years, 1 month ago6c84cb9
Most Recent 4 months, 3 weeks agoDarGrin
8 months agoasdfjhfgjuaDCV
10 months, 3 weeks agosteefaand
11 months, 4 weeks agoiSnover
11 months, 4 weeks ago