1.

Advantage of using immutable data?​

Answer»

\huge\pink{\underline{Good-Noon}}\huge\blue{\fbox{\fbox{\fbox{\red{\mathcal{Hlo}}}}}}plz \: thx \: my \: answerThe advantage of immutableobjects is that you know theirdata cannot change, so you don't have to worry about that. You can pass them around freely without havingto REMEMBER whether a METHOD you pass them to COULD change them in a way your code is not prepared to handle. That MAKES workingwith IMMUTABLE data easier.



Discussion

No Comment Found