MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/q7jrus/formatformat/hgk4uuy/
r/badcode • u/Sprixx_Dev evil • Oct 13 '21
70 comments sorted by
View all comments
Show parent comment
14
Ah the pool is neat, sounds like a memory saving trick?
27 u/[deleted] Oct 14 '21 More of a way to pick up chicks. 6 u/Rakn Oct 14 '21 Memory saving and performance. But it’s an internal implementation thingy of the JVM. So if you use == it will fail at some point and will leave you wondering why your code just broke. Using == on strings is wrong here. Don’t do it.
27
More of a way to pick up chicks.
6
Memory saving and performance. But it’s an internal implementation thingy of the JVM. So if you use == it will fail at some point and will leave you wondering why your code just broke. Using == on strings is wrong here. Don’t do it.
View all comments
Show parent comment
14
u/andyinnie Oct 14 '21
Ah the pool is neat, sounds like a memory saving trick?