Re:Why Is Object-Oriented Programming Useful? With a Role-Pl...
by Gurkenmaster on Wednesday December 03, 2014 @07:51AM
(#8693427)
If OOP encourages mutation can you explain to me why the String class in java is immutable?
[ Parent
| on HN ]
Re:Why Is Object-Oriented Programming Useful? With a Role-Pl...
by bsder on Thursday December 04, 2014 @01:13AM
(#8698066)
It's a holdover from when Java was supposed to be a language for small machines.
However, if you're being snide, let me retort "So why does everybody in Java immediately recommend that you use the StringBuilder class instead of String?"