exam questions

Exam 1z0-809 All Questions

View all questions & answers for the 1z0-809 exam

Exam 1z0-809 topic 1 question 49 discussion

Actual exam question from Oracle's 1z0-809
Question #: 49
Topic #: 1
[All 1z0-809 Questions]

Which statement is true about java.util.stream.Stream?

  • A. A stream cannot be consumed more than once.
  • B. The execution mode of streams can be changed during processing.
  • C. Streams are intended to modify the source data.
  • D. A parallel stream is always faster than an equivalent sequential stream.
  • E. Stream operation accepts lambda expressions as its parameters.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
varconite
Highly Voted 4 years, 1 month ago
Answer is A
upvoted 7 times
...
6c84cb9
Most Recent 5 months, 4 weeks ago
The correct answers are A and E: A: A stream cannot be consumed more than once. E: Stream operations accept lambda expressions as their parameters.
upvoted 1 times
...
asdfjhfgjuaDCV
11 months ago
A is the answer
upvoted 1 times
...
steefaand
12 months ago
Selected Answer: A
A is true as exception is thrown if same stream is used after terminal operation is run on it.
upvoted 1 times
...
iSnover
1 year ago
Selected Answer: A
The answer is letter A, a stream can only be consumed once. Regarding the letter E, it is false, pay attention that the statement talks about the stream parameter and not the method parameter, you cannot use a lambda expression as a stream parameter, it is a trick.
upvoted 1 times
...
duydn
1 year, 4 months ago
Selected Answer: A
A & E are correct!
upvoted 1 times
...
WilsonKKerll
2 years, 10 months ago
A is NOT. Can use peak() consumed more than one. Answer is B. Because can change parallel stream to change mode.
upvoted 1 times
iSnover
1 year ago
No, the "peek()" method is an intermediate operation
upvoted 1 times
...
...
HanenBA
2 years, 11 months ago
Selected Answer: A
After the terminal operation is performed, the stream pipeline is considered consumed, and can no longer be used. For Intermediate operations,they always return a new stream
upvoted 3 times
...
Eason_from_the_future
3 years, 5 months ago
stream takes no parameter, so E is incorrect.
upvoted 1 times
...
Svetleto13
3 years, 8 months ago
A and E are correct.
upvoted 2 times
...
Huim
3 years, 8 months ago
Is E correct?
upvoted 1 times
...
jduarte
3 years, 12 months ago
Answer is A
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago