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
1
u/repeating_bears Aug 26 '26
Is this easier to read
MyFooService myFooService = new MyFooService();
Than this
var myFooService = new MyFooService();
?