Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: Class.forName().newInstance() vs new Date: Sat, 11 Jun 2011 15:43:27 -0400 Organization: The Wasteland Lines: 18 Message-ID: References: <95ho4qFd7cU1@mid.individual.net> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5221 In article , Abu Yahya wrote: > Could you give an example of how the factory method might look like? There's some good examples here: And in the linked article, "Item 1: Consider static factory methods instead of constructors." -- John B. Matthews trashgod at gmail dot com