Check out example codes for "are strings modifiable". It will help you in understanding the concepts better.

Code Example 1

In Java, strings are not modifiable meaning that they are immutable.

Learn ReactJs, React Native from akashmittal.com