MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oliinb/in_java_exception_handling_needs_exception/h5i3olk/?context=3
r/badcode • u/dj45689 • Jul 16 '21
60 comments sorted by
View all comments
Show parent comment
1
In java 7 and below, if you needed to reference it from an anonymous class in the catch block, you would have had to explicitly mark the variable as final.
View all comments
Show parent comment
1
u/BS_in_BS Jul 17 '21
In java 7 and below, if you needed to reference it from an anonymous class in the catch block, you would have had to explicitly mark the variable as final.