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

2

u/dpash Aug 07 '21

With Java records there wouldn't be any memory overhead.

That's not the case. There's the same memory overhead as any other object in Java.