String Immutability in Java/ Immutable string in Java

Veröffentlicht am: 19 September 2017
auf dem Kanal: 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...  


Auf dieser Seite können Sie das Online-Video String Immutability in Java/ Immutable string in Java mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer EasyConcepts 19 September 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,656 Mal angesehen und es wurde von 103 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!