String Immutability in Java/ Immutable string in Java

Publicado el: 19 septiembre 2017
en el canal de: 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...  


En esta página del sitio puede ver el video en línea String Immutability in Java/ Immutable string in Java de Duración hora minuto segunda en buena calidad , que subió el usuario EasyConcepts 19 septiembre 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,656 veces y le gustó 103 a los espectadores. Disfruta viendo!