Q. What is the output of `Arrays.asList("a", "b").forEach(System.out::println);`?
β
Correct Answer: (B)
Prints 'a' and 'b' on separate lines
Explanation: The method reference prints each element on a separate line.