user image

Gagan Mishra

Job Interview Skills
English
2 years ago

Question 683. Why Is String Called Immutable Data Type?

user image

Abhishek Mishra

2 years ago

The String is immutable, so its value cannot be changed. If the String doesn't remain immutable, any hacker can cause a security issue in the application by changing the reference value. The String is safe for multithreading because of its immutableness. Different threads can access a single “String instance”.

Recent Doubts

Close [x]