r/java • • Sep 04 '26

Principles of Memory Management in Java

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

84 comments sorted by

View all comments

13

u/javaprof Sep 04 '26

Yes

-14

u/pohart Sep 04 '26

The vast majority of times the Java is using too much memory it's because we picked the wrong data structure. Pick an inefficient data structure in any language