what are factory methods in java?
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
Post Answer
Preview:
Ads