C is correct since readAllLines returns List rather than Stream. For this to be true assume that Files is static imported and there is no need for it to be present in front of readAllLines.
C can be the answer with below modification.
Stream<String> fc = Files.readAllLines (file).stream();
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Innovation
Highly Voted 4 years, 6 months agosteefaand
Most Recent 5 months, 3 weeks agoiSnover
5 months, 4 weeks agoWilsonKKerll
2 years, 4 months agoWilsonKKerll
2 years, 4 months agoM_Jawad
4 years, 6 months agoM_Jawad
4 years, 6 months agoDestroyer
4 years, 7 months agoRitesh_
4 years, 9 months ago