lundi 23 février 2015

What is the difference between Flyweight design pattern and Java cache

I read about Flyweight design pattern and got to know that it stores the objects that can be shared so as to save on heap usage. Java cache also saves the objects that can be reused later so as to save memory. Then what is the real difference between Flyweight design pattern and java cache ?


Aucun commentaire:

Enregistrer un commentaire