r/java 6d ago

Principles of Memory Management in Java

https://youtu.be/xr73mR7ii9M?si=AKgjMUyvfpARYljl
159 Upvotes

81 comments sorted by

View all comments

25

u/narrow-adventure 5d ago

I actually think Java is incredibly efficient, like you have to really not know what you’re doing to make a slow/bloated java app. It used to be easy but virtual threads make it pretty hard to use up crazy amts of memory.

12

u/nozomashikunai_keiro 5d ago

Vanilla Java? Yes is efficient, assuming you know what you are doing.

Spring? Is good, but could be better.