# 1z0-829 — Question 606

**Type:** multiple_choice
**Topics:** topic_1

## Question

Given the code fragment:
//IMG//

What is the result?

## Correct Answer

_See scenario._

## Explanation

Selected Answer: C
package q13;

import java.util.stream.Stream;

public class Q13 {

 public static void main(String[] args) {
 Stream<String> s1 = Stream.of("A", "B", "C", "B");
 Stream<String> s2 = Stream.of("A", "D", "E");
 Stream.concat(s1, s2).parallel().distinct().forEach(element -> System.out.print(element));
 }

}

// Result:
// CEDBA
// CEDAB
// CEDBA

**Reference:** examtopics_top_comment

---
Source: https://hiexam.net/q/oracle/1z0-829/606  
Practice (tracked): https://hiexam.net/study/1z0-829/practice