Solved

Which Statement Creates a Stream from an Explicit Specification of Words

Question 44

Multiple Choice

Which statement creates a stream from an explicit specification of words?


A) Stream<String> words = Stream.of("The","quick","brown","fox","jumped","over","the","lazy","dog") ;
B) Stream<String> words = Stream.of({"The","quick","brown","fox","jumped","over","the","lazy","dog"}) ;
C) Stream<String> words = Stream.stream("The","quick","brown","fox","jumped","over","the","lazy","dog") ;
D) Stream<String> words = Stream.of{"The","quick","brown","fox","jumped","over","the","lazy","dog"};

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions