String Immutability in Java/ Immutable string in Java

Опубликовано: 19 Сентябрь 2017
на канале: EasyConcepts
3,656
103

This tutorial explains the concept of String Immutability in Java and helps us to understand why string class is made immutable.
NOTE:
The concat method will create string on heap in both cases. This is because strings are added in literal pool at class loading time by JVM. While the concat statement in both cases will be resolved at runtime and therefore, concatenated string should be on heap. In the tutorial, I was focused on explaining string immutability and missed this important point.
For detail tutorial on string watch -
   • How is String interned in Java? | String I...  


На этой странице сайта вы можете посмотреть видео онлайн String Immutability in Java/ Immutable string in Java длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь EasyConcepts 19 Сентябрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,656 раз и оно понравилось 103 зрителям. Приятного просмотра!