1 min readJun 1, 2018
Yes, this post is correct, only the reference is read-only/immutable. Take another look at the first example in my blog post and it illustrates this misconception in Java.
Also note that if you use val everywhere, this problem goes away.