About Question enthuware.ocpjp.v8.2.1898 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
jme_chg
Posts: 29
Joined: Sun Feb 07, 2021 6:30 pm
Contact:

About Question enthuware.ocpjp.v8.2.1898 :

Post by jme_chg »

Why does IntStream's average() return OptionalDouble but Collectors.averagingInt() returns a double? Any reason?

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1898 :

Post by admin »

Not sure but most likely it is because of some theme they were following while designing the API.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests