File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 11923

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Strategy pattern vs Factory pattern
It's not a secret anymore!