Why Strings in Java are called as Immutable?

By ayush goel in 22 Sep 2023 | 11:28 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

Why Strings in Java are called as Immutable?

22 Sep 2023 | 11:28 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

- Strings in Java are immutable, which means their values cannot be changed after creation. Any modification to a `String` results in a new `String` object.


23 Sep 2023 | 04:30 pm
0 Likes

Report

Please describe about the report short and clearly.