We know , Java intern string pool is based on Flyweight design pattern. Also the String object is immutable. Is it compulsary that all the objects which are using Flyweight pattern is Immutable? . What is the difference between mutable and immutable objects in Flyweight pattern?
Aucun commentaire:
Enregistrer un commentaire