WHY STRINGS ARE IMMUTABLE IN JAVA?

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

The second reason is correct but first reason is not. Please note carefully, "String is immutable not because of concept of string pool" but "since string is immutable, the string pool concept was implemented". In short, the string immutability concept was implemented first, then bcoz of this, the string pool concept was implemented.

msudachan
Автор

The other reason for string immutability is, improved performance

msudachan
Автор

nice one but, your speech is too faster....

bnupadhyay