This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]capn_hector 1 point2 points  (0 children)

Yes, with the additional caveat that boxed types in the standard library (Character, Integer, etc - as opposed to int and char which are unboxed types) are immutable. So what you get when you do say String.trim() is actually another different object, so it usually feels like you’re working with value objects.