Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
System Design
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
What is the difference between Stream.of() and Arrays.stream() in Java?
Auto Skip
Report Issue
A.
Stream.of() wraps primitive array as single element (Stream<int[]>); Arrays.stream() returns IntStream; Arrays.stream() preferred for primitives
B.
Stream.of() and Arrays.stream() produce same result in every case; preference based on readability
C.
Arrays.stream() only works for Object arrays; Stream.of() must be used for primitive arrays
D.
Stream.of() copies source; Arrays.stream() references original array
Previous
Next