String Immutability
The rule that a String's character sequence cannot change after the object is created.
What is String Immutability in Java?
String Immutability — The rule that a String's character sequence cannot change after the object is created.
class StatusLabel {
String status = "open";
String uppercaseStatus = status.toUpperCase();
}
Level: Apprentice · More Java terms at this level
Updated