What is the output of `Arrays.asList("a", "b").forEach(System.out::println);`?
Correct answer
Prints 'a' and 'b' on separate lines
Explanation
The method reference prints each element on a separate line.
Update: Admin added a tag on this question
Topics
By Admin · · 24 views