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









Related Tutorials/Questions & Answers:
difference between java5 and java6 - Java Beginners
Java2
Advertisements
factory methods in java?
Javah
about java1
About Java2
javaa swings - IDE Questions
Javap Tool application
Javah -  Header File Generator
Artifacts of javax
methods
methods
methods
Javah - Header File Generator
Javah - Header File Generator
ModuleNotFoundError: No module named 'javax'
ModuleNotFoundError: No module named 'javax'
Javac -source KeyTest.java
javax - JSP-Servlet
ModuleNotFoundError: No module named 'javac-parser'
ModuleNotFoundError: No module named 'javac-parser'
Version of javax>javaee-api dependency
javab - Java Beginners
javas - JSP-Servlet
javac complier not found - JSP-Servlet
Write a program that replaces a, e, i, o, u in Java2
Version of javax>javaee-endorsed-api dependency
Version of javax>javaee-web-api dependency
Methods of HttpServlet
Version of plexus>plexus-compiler-javac dependency
Version of com.pushtorefresh>javac-warning-annotation dependency
java.lang.NoClassDefFoundError: javax/transaction/UserTransaction????? - Struts
javax servlet error - JSP-Servlet
Maven Repository/Dependency: javax | wsdl
Maven Repository/Dependency: javax | j2ee
javac is not ecognised as internal and external command - Java Beginners
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
static methods
Agile methods
Maven Dependency plexus-compiler-javac >> 1.0
Maven Dependency javac-warning-annotation >> 1.0.0
Maven Repository/Dependency: javax | javaee-api
Maven Repository/Dependency: plexus | plexus-compiler-javac
Maven Repository/Dependency: com.pushtorefresh | javac-warning-annotation
native methods
Maven Repository/Dependency: javax | javaee-web-api
Maven Repository/Dependency: javax | javaee-endorsed-api
JEE 7 JSON java.lang.NoClassDefFoundError: javax/json/Json
validate() and reset() methods
Various methods of httpservletresponse interface

Ads