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

165 views Asked by At

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?

2

There are 2 answers

0
Ganesh On BEST ANSWER

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.

0
Tagir Valeev On

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.