This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes difference between builder pattern and abstract factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "difference between builder pattern and abstract factory" Watch "difference between builder pattern and abstract factory" New topic
Author

difference between builder pattern and abstract factory

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
Hi
I am preparing for my SCEA 1 .i am a bit muddled after reading about the builder and abstract factor pattern
They seem so similar what is the difference between the two
Could anyone help me out
Cheers
Priya
Deriko Prata
Greenhorn

Joined: Dec 16, 2010
Posts: 21
hello there,

Both are creational patterns, although they seem similar, the key factor to distinguish them , is their intention. The builder pattern consists in constructing a complex object, by directing the steps of its creation, thereby you can have different final products. The abstract factory pattern, combines factory methods to delegate the responsibility of creating a group of related objects(family) to its concrete subclasses.


 
wood burning stoves
 
subject: difference between builder pattern and abstract factory
 
Similar Threads
Java Design Pattern
Abstract Factory pattern
Difference between Abstract Factory and Builder Pattern
SCEA Part -I - Questions out desgin pattern
Builder & Strategy Patterns?