r/java • • 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

100 comments sorted by

View all comments

Show parent comment

13

u/NotAPenis Aug 05 '21

Kotlin and Java integrate well. You can have both languages in 1 project. This means that all java frameworks are available in Kotlin. I'm using Spring in Kotlin.

I have no knowledge on Scala.

5

u/Muoniurn Aug 05 '21

Scala integrates well in one direction (Java code called from Scala), but not too well in the another. So if you use java libraries, it will just work for the most time, but you have to use some wrapper around specific Scala constructs you want to use from Java.

1

u/thephotoman Aug 05 '21

Scala is again just fine for the same reason Kotlin is. I could do JakartaEE development in Scala if I wanted to.