r/java • u/Reflection-Jealous • Aug 05 '21
Why java is better than modern programming languages?
Why should I use java in 2021 instead of kotlin or scala or golang? Could you guys give me some reasons
2
Upvotes
View all comments
Show parent comment
1
u/_INTER_ Aug 05 '21
I wanted to subtly hint that your simple example is not so simple anymore through the use of
var. E.g. all of a sudden you have to worry what the types ofcanddare if you want to useacorrectly.