What is string in Java?

Strings in Java are Objects that are backed internally by a char array. Since arrays are immutable(cannot grow), Strings are immutable as well. Whenever a change to a String is made, an entirely new String is created. Below is the basic syntax for declaring a string in Java programming language.

For More Information Please Refer: https://www.geeksforgeeks.org/strings-in-java/