factory methods in java?

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

Ads









Related Tutorials/Questions & Answers:
factory methods in java?
Java2
Advertisements
Javah
Javah -  Header File Generator
Javap Tool application
Artifacts of javax
methods
methods
methods
ModuleNotFoundError: No module named 'javax'
ModuleNotFoundError: No module named 'javax'
Javah - Header File Generator
Javac -source KeyTest.java
Version of javax>javaee-api dependency
ModuleNotFoundError: No module named 'javac-parser'
ModuleNotFoundError: No module named 'javac-parser'
Version of javax>javaee-endorsed-api dependency
Version of javax>javaee-web-api dependency
Write a program that replaces a, e, i, o, u in Java2
Version of plexus>plexus-compiler-javac dependency
Version of com.pushtorefresh>javac-warning-annotation dependency
static methods
native methods
JEE 7 JSON java.lang.NoClassDefFoundError: javax/json/Json
Maven Dependency plexus-compiler-javac >> 1.0
Maven Dependency javac-warning-annotation >> 1.0.0
Various methods of httpservletresponse interface
Maven dependency for com.gooddata - gooddata-http-client version 1.0.0+java7 is released. Learn to use gooddata-http-client version 1.0.0+java7 in Maven based Java projects
ModuleNotFoundError: No module named 'methods'
GET and POST methods
Final Methods - Java Tutorials

Ads