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
πŸ’¬ Discuss
βœ… Correct Answer: (B) A sequence of objects that can be processed in parallel
Explanation: Streams are a new type of collection in Java 8 that allows for efficient processing of large datasets in parallel.
Explanation by: Pushkar
Streams are a new type of collection in Java 8 that allows for efficient processing of large datasets in parallel.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
275
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Pushkar
Publisher
πŸ“ˆ
95%
Success Rate