Photo by Blake Connally on Unsplash

In Java, as is the case with most programming languages, strings are immutable; once a string is initialized with a value, it cannot be changed.

What is it and when should I use it?

Take a look at the following code for instance: