Hari Kiran
Hari Kiran

Reputation: 23

On non-existent merge() method mentioned in an OCPJP 8 exam topic in Stream - IZ0-809 exam

The last exam objective under "Java Streams" section in 1Z0-809 exam (Java 8 exam) reads:

Use of merge() and flatMap() methods of the Streams

There is no merge() method in Stream interface!

There is a merge(Object, Object, BiFunction) method in Map but the exam objective clearly says "merge() and flatMap() methods of the Streams". Of course there is a flatMap() method in Stream interface. So what am I missing? Is the exam objective wrong? If its a mistake in the exam objective, how to contact Oracle for reporting this problem?

Upvotes: 2

Views: 161

Answers (2)

Ganesh
Ganesh

Reputation: 26

Saw that it got fixed in the exam objectives - http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809

Thank you Stuart Marks.

Upvotes: 1

Tagir Valeev
Tagir Valeev

Reputation: 100209

I guess it's a mistake in exam objectives. Even in prerelease Stream API versions there were no merge() method. Also according to the public sources, there are no plans or even proposals to add such method in future Java versions. Probably map() method was meant or something else.

Upvotes: 1

Related Questions