my dog learned polymorphism
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Reply 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Difference between Abstract Factory and Builder Pattern
 
Similar Threads
Difference between Builder and Factory Pattern
Abstract Factory pattern
Abstract Factory Pattern Vs Factory Pattern
design patterns
Java Design Pattern