A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Java in General
javax.xml.parsers.DocumentBuilderFactory,static newInstance's concrete implementation.
Punya Pratap Singh
Joined: Nov 23, 2010
Dec 28, 2010 00:24:48
is a Abstract class .It has a newInstance method which returns a instance of type
how does this static method finds implementing concrete class.
Java have already gone through
docs and asking for simple and easy in depth explanation.
please explain ? Thanks
Joined: Jan 28, 2008
Dec 28, 2010 00:36:30
probably, newInstance method is instantiate a class[subclass of
] which is implementation of
also, google for static factory method
Joined: Oct 27, 2005
Dec 28, 2010 01:40:53
Inside the JDK installation folder there is a file called src.zip. You can open that to see the source code of most classes.
In this case, it uses a system property for the actual class name. If the system property is not found a default one will be used.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: javax.xml.parsers.DocumentBuilderFactory,static newInstance's concrete implementation.
Is there any means to check the number of objects created when a java prgram runs.
abstract nature with package level access?
abstract class and static methods
Can't get the result of factorial method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013