Why String is immutable in java programming

preview_player
Показать описание
Why String is immutable in java?
·
1) String pool requires string to be immutable otherwise shared reference can be
changed from anywhere.
2) security because string is shared on different area like file system, networking connection, database connection, having immutable string allows you to be secure and safe because no one can change reference of string once it gets created.

************social media handles***************
contact:91 -7530088009
***************************************************
office address:43/6 Sathy Road, 4 th floor, Ramakrishnapuram, Tulasi Damu Arcade
Coimbatore, Tamil Nadu 641006
********************************************
Sparkdatabox is one of the best software training institute in coimbatore. They offer Oracle Database, Java, Apache Tomcat, SQL ,phython,digitalmarketing,dotnet and other courses
hashtag
#sparkdatabox #softwaretrainginstitudeincoimbatore #ITJOBS #ITplacements #traininginstitude #softwaretrainingintamil #placements
Рекомендации по теме