factory methods in java?

what are factory methods in java?

View Answers

January 10, 2011 at 11:25 AM

Hi Friend,

Factory methods are static methods that return an instance of the native class like Pattern.compile(), Calendar.getInstance(),ClassLoader.findClass(String name) etc.

Thanks









Related Tutorials/Questions & Answers:
Advertisements