Immutable and Mutable Values

An immutable value is the one, which is once created can never be changed. Examples of immutable vales can be numbers, string and boolean. Source element should not be affected and original element has to remain unchanged at all time. While mutable values means changing the array or modifying the value. This is not recommended.Continue reading “Immutable and Mutable Values”