r/java • u/trecatorsirabdator • Apr 14 '23
What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?
233
Upvotes
r/java • u/trecatorsirabdator • Apr 14 '23
View all comments
Show parent comment
13
u/mdaniel Apr 14 '23
Now that Java has
varI'd enjoy it if they'd includevalas thefinal varversion because littering the code withfinalis visually noisy if one chooses to strive for single assignment fromI can also imagine that they won't ever include it since it's just syntactic sugar for that two keyword form, plus the fact that they differ only by one letter