The String is immutable in Java because of the security, synchronization and concurrency, caching, and class loading. The reason of making string final is to destroy the immutability and to not allow others to extend it. The String objects are cached in the String pool, and it makes the String immutable
On this page of the site you can watch the video online Why Strings are immutable in JAVA? | Core JAVA| most asked Interview Questions| Freshers Experienced with a duration of hours minute second in good quality, which was uploaded by the user Developer Advocates Aspirant 14 January 2023, share the link with friends and acquaintances, this video has already been watched 8,040 times on youtube and it was liked by 215 viewers. Enjoy your viewing!