![]() #clone() (the class has to implement )Įnsure a class only has one instance, and provide a global point of access to it.Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. #createMarshaller() and other similar methods.#createURLStreamHandler(String) (Returns singleton object per protocol).Factory Method lets a class defer instantiation to subclasses. All implementations of ĭefine an interface for creating an object, but let subclasses decide which class to instantiate.Difference between Strategy and State design Pattern in Java 3. When to use Strategy Design Pattern in Java 2. #put() (also on CharBuffer, ShortBuffer, IntBuffer, LongBuffer, FloatBuffer and DoubleBuffer) Java Design Patterns Interview Question 1.Why the construction of a complex object from its representation so that the same construction process can create different representations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |