IntStream.range(0, 3).forEach(i -> IntStream.range(0, 3).forEach(j -> System.out.print(i * j)) );
Are they equivalent? No—method reference captures the class, lambda captures the instance? Wait, LocalDate::now is a static method reference. Both produce the same result. But the test asked about serializability . ikm java 8 test updated
(Invoking related search suggestions...) IntStream
But the test asked: What if A had static void m() and B had default void m() ? Static methods don’t participate in inheritance. Class C must still implement m() ? No— A ’s static is irrelevant. B ’s default suffices. Unless A ’s static is called directly. System.out.print(i * j)) )
When the final question submitted, the screen didn’t show a score. It showed: