Given:
Which is true?
A. The code compiles but does not print any result.
B. The code prints 25.
C. The code does not compile.
D. The code throws an exception at runtime.
Given:
Which is true?
A. The code compiles but does not print any result.
B. The code prints 25.
C. The code does not compile.
D. The code throws an exception at runtime.
Variable used in lambda expression should be final or effectively final
C is correct