Consider Static Factory Methods Instead of Constructors [Factory pattern]
Why static factory methods may be better for your use cases than constructors in Java.
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Shidram BJ. See the original article here.
Opinions expressed by DZone contributors are their own.