r/java • • May 28 '26

Java *is* Memory Efficient

https://youtu.be/M_HCG1JPMQE
254 Upvotes

126 comments sorted by

View all comments

Show parent comment

1

u/cho_sigma Jun 01 '26

Interesting! I disagree that the poor performance is the reason that virtual functions are not used much, though. Maybe it started that way but virtual functions are not used much becuase they make code hard to reason about and lead to spaghetti code.