aspose file tools
The moose likes Beginning Java and the fly likes Strategy pattern vs Factory pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Strategy pattern vs Factory pattern" Watch "Strategy pattern vs Factory pattern" New topic

Strategy pattern vs Factory pattern

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 635
Both are used for choose a solution, What are difference between them?
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11743

have you tried reading about them anywhere, such as on the wikipedia? That's where I'd start

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: Strategy pattern vs Factory pattern