mardi 20 septembre 2016

Singleton Design Pattern initialization approach

Singleton classes can be created using either 'Eager' or 'Lazy' initialization. Which approach is better to go with 'Eager' or 'Lazy'? What are the pros & cons of them?

Aucun commentaire:

Enregistrer un commentaire