What is the output of this code?
List<String> names = Arrays.asList("Asish", "Geek", "Amiya");
names.stream().filter(s -> s.startsWith("A")).count();
3
2
1
Compilation error
This question is part of this quiz :
Java Lambda Expressions and Streams