r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

Show parent comment

2

u/StoleAGoodUsername Jan 17 '14

It uses the string pool, so I believe that unless the gc runs mid loop, you are still able to use the same "" in memory from before.

Strings in java are really kinda odd.