Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mnw21cam
on March 4, 2021
|
parent
|
context
|
favorite
| on:
It Can Happen to You
Yes, Strings are immutable, so they only calculate their hashCode once, then cache it. However, you need to explicitly intern them with String.intern() if you want to avoid multiple copies of the same String.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: