Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Consider Static Factory Methods Instead of Constructors [Factory pattern]

DZone 's Guide to

Consider Static Factory Methods Instead of Constructors [Factory pattern]

Why static factory methods may be better for your use cases than constructors in Java.

· Java Zone ·
Free Resource

This content will be revised soon, due to some problem of the content added earlier,

not yet updated as i didn't used this dzone account for long time due to lost of credentials for the same and was busy with personal duties. Today i found and able to make out the issues and want to change this post which i could have changed long back.


Apologies for the same.


Coming soon.............



Topics:
java ,j2ee ,constructor

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}