Wednesday, January 15, 2020

String in Java


Strings 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.

No comments:

Post a Comment