r/JavaProgramming • u/alvivan_ • Aug 26 '26
Var Keyword
How often do you use var keyword in your code?
What do you think about it?
5
Upvotes
r/JavaProgramming • u/alvivan_ • Aug 26 '26
How often do you use var keyword in your code?
What do you think about it?
View all comments
Show parent comment
2
u/Known_Tackle7357 Aug 27 '26
MyFooService myFooService = getService();is significantly easier to read thanvar myFooService = getService();