Nick Skelton
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.

--

--

Nick Skelton
Nick Skelton

Written by Nick Skelton

Freelance Android Dev. Google Developer Expert. Full Time Remote. Part Time Buzzword Hacker.

No responses yet