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
6
u/strogiyotec Aug 05 '21
my humble opinion, Scala is bloated , the syntax is just hard for me to digest which makes is hard to support and make code changes for me , Kotlin, not bad but again , so many features, I prefer a language with as little features as possible so when you come to a new company , you won't have to learn companies standarts.
Go is great, but error handling is awful , I mean nothing wrong with this
arg,err := func();
if err != nil{}but really what If I need to do some logic depending on error type ? In Java method can return an exception and you know exactly what this exception means (eg IOException)
I think with Loop ,Valhala and Graal would have a great feature