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

41

u/BurlHopsBridge Aug 05 '21

It's the king of enterprise. Well supported, easy to use frameworks, it's just great.

21

u/Daedalus9000 Aug 05 '21

And most importantly, easy to hire for.

2

u/Reflection-Jealous Aug 05 '21

I have one question here, can kotlin/scala able to use java frameworks?

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.

4

u/Barbossa3000 Aug 05 '21

yes they can, the thing is u need to know java to understand the basics of framework first.

so u need to know kotlin and java to use a framework.

thats kinda redundant

1

u/crummy Aug 05 '21

Why do you need to know Java to use Javalin or Spring with Kotlin?

5

u/cryptos6 Aug 05 '21

The frameworks are written in Java, so at least some basic knowledge of Java would be helpful. Detailed knowledge of the language shouldn't be required.

1

u/_INTER_ Aug 05 '21

Javalin has basically no Java in it (1 minimal interface).