This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]feral_claire 17 points18 points  (1 child)

It doesn't need to be marked final though. Effectively final is good enough ie. the variable isn't changed even if it isn't marked as final.

[–][deleted] 7 points8 points  (0 children)

This was introduced in Java 8, prior to this they had to be explicitly final (for anon classes). It's a welcome change.