New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Oracle Java SE 11 Developer 1z0-819 Question # 18 Topic 2 Discussion

Oracle Java SE 11 Developer 1z0-819 Question # 18 Topic 2 Discussion

1z0-819 Exam Topic 2 Question 18 Discussion:
Question #: 18
Topic #: 2

var numbers = List.of(0,1,2,3,4,5,6,7,8,9);

You want to calculate the average of numbers. Which two codes will accomplish this? (Choose two.)


A.

double avg = numbers.stream().parallel().averagingDouble(a −> a);


B.

double avg = numbers.parallelStream().mapToInt (m −> m).average().getAsDouble ();


C.

double avg = numbers.stream().mapToInt (i −> i).average().parallel();


D.

double avg = numbers.stream().average().getAsDouble();


E.

double avg = numbers.stream().collect(Collectors.averagingDouble(n −> n));


Get Premium 1z0-819 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.