Why String is immutable in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why String is immutable in Java?

3rd Sep 2017, 4:01 PM
ⓢⓐⓝⓓⓔⓔⓟ
ⓢⓐⓝⓓⓔⓔⓟ - avatar
1 Answer
+ 8
in java string are immutable table because we can not alter or change the string data once assigned to it. check it once, https://code.sololearn.com/cRFSi8C88PYG/?ref=app
27th Jan 2018, 7:31 PM
ASIF BILAKHIYA
ASIF BILAKHIYA - avatar