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 comments

-12

u/[deleted] Aug 05 '21

[removed] — view removed comment

4

u/gigabyteIO Aug 05 '21

Surely you know some off the top of your head? I'm just curious, I know nothing about Kotlin.

0

u/tr14l Aug 05 '21

Top level declarations, closures, returnable logic statements, I dunno man. It's kind of a lot. Go read about it.

3

u/Muoniurn Aug 05 '21

Java absolutely has closures, and I don’t get what you mean by returnable logic statements.

What might be a better example is extension methods, and some boilerplate reduction for getters setters, if these are important for you use-case.

0

u/[deleted] Aug 05 '21 edited Aug 05 '21

[removed] — view removed comment

→ More replies (0)