String Immutability in Java/ Immutable string in Java

Pubblicato il: 19 settembre 2017
sul canale di: 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...  


In questa pagina del sito puoi guardare il video online String Immutability in Java/ Immutable string in Java della durata di ore minuti seconda in buona qualità , che l'utente ha caricato EasyConcepts 19 settembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,656 volte e gli è piaciuto 103 spettatori. Buona visione!