This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes what's the factory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "what Watch "what New topic

what's the factory?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
as we can seen,there are a lot of "factory" in the java,such as InitialContextFactory,KeyManagerFactory,.........
so many factories have confused me,but i think there must be some common meaning withing the factories,and there must be differences between the factories and other classes,who can help me?
thank you
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Factory method is just a fancy name for a method that instantiates objects. Like a factory, the job of the factory method is to create -- or manufacture -- objects.

for more detail refer to

Sharing is learning
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149

This question was cross-posted all over JavaRanch.

An IDE is no substitute for an Intelligent Developer.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Continue the conversation here.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: what's the factory?
It's not a secret anymore!