aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Difference between Abstract Factory and Builder Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Difference between Abstract Factory and Builder Pattern" Watch "Difference between Abstract Factory and Builder Pattern" New topic
Author

Difference between Abstract Factory and Builder Pattern

Kartik Shah
Ranch Hand

Joined: Dec 07, 2000
Posts: 102
What is the key difference between Abstract Factory and Builder Pattern?

Kartik Shah
SCJP, SCDJWS, IBM Certified Websphere & XML, PMP & Six Sigma - http://blog.kartikshah.info
Ashish Jaiman
Ranch Hand

Joined: May 01, 2001
Posts: 47
quoting from gof
Abstract Factory has the factory object producing objects of several classes. Builder has the factory object building a complex product incrementally using a correspondingly complex protocol


-AJ<br />Sun Certified Java Programmer<br />Microsoft Certified Software Developer
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Abstract Factory & Builder pattern are both creational patterns. Each have different intents..
Abstract Factory pattern is about creating related families of objects.
Builder pattern is to decouple the representation from the complex construction proces, so that the same construction process can be used for different representations.
Hope this helps.
Anil
Kartik Shah
Ranch Hand

Joined: Dec 07, 2000
Posts: 102
That clears up my doubt.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference between Abstract Factory and Builder Pattern