Solved

Which Statement Creates a Stream from an Array of Integers

Question 67

Multiple Choice

Which statement creates a stream from an array of integers defined as shown:
Integer[] myArray = {0, 1, 1, 2, 3, 5, 8, 13, 21, 34};


A) Stream<Integer> myStream = Stream.of(myArray) ;
B) Stream<Integer> myStream = myArray.stream() ;
C) Stream<int> myStream = myArray.stream() ;
D) Stream<int> myStream = Stream.of(myArray) ;

Correct Answer:

verifed

Verified

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

Related Questions