Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is an immutable reference?

Tags:

android

hi i have found Uri as immutable reference i dont know what it is the exact meaning of immutable reference... can anyone help me?

like image 281
satheesh.droid Avatar asked Jul 12 '26 05:07

satheesh.droid


1 Answers

It's a variable that cannot be changed once set. Very useful when you have multithreaded code since being able to change a variable's value might be a source of many hard to find problems in your code.

If it's immutable, it's usually good.

like image 110
darioo Avatar answered Jul 14 '26 19:07

darioo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!