Object Oriented analysis and design class will be discussing the singleton pattern today
-
Singleton – eager instantiation. Eager instantiation performed at time class is loaded. public class Singleton. {. private static Singleton instance …
-
Lazy instantiation is a memory conservation technique, by which, a program delays the creation of objects until those objects are needed. In Java, there are two categories of lazy instantiation:
Post a Comment