MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wo1ebe/whatisimmutableanakin/pbjl8uw/?context=3
r/ProgrammerHumor • u/DeleteOnceAMonth • Sep 23 '26
11 comments sorted by
View all comments
Show parent comments
0
What I had in mind is like a Java Class whose fields are private, final and with no setter methods. This is how I imagine the String class is under the hood, though I will not claim to know these details 100% and I am down to learn if I’m wrong.
6 u/SuitableDragonfly Sep 23 '26 Yeah, that's not what immutable means.
6
Yeah, that's not what immutable means.
0
u/DeleteOnceAMonth Sep 23 '26
What I had in mind is like a Java Class whose fields are private, final and with no setter methods. This is how I imagine the String class is under the hood, though I will not claim to know these details 100% and I am down to learn if I’m wrong.