what are factory methods in java?
Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.
Have Programming Question? Ask it here!
Factory methods are static methods that return an instance of the native class like Pattern.compile(), Calendar.getInstance(),ClassLoader.findClass(String name) etc.