Home / Programming MCQs / JAVA MCQs / Question

P

Pushkar • 380 Points
Valuable

Q. What is a stream in Java 8?

(A) A type of input/output stream for reading and writing files
(B) A sequence of objects that can be processed in parallel
(C) A data structure that holds key-value pairs
(D) A type of network socket
Explanation by: Pushkar
Streams are a new type of collection in Java 8 that allows for efficient processing of large datasets in parallel.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.