[thelist] Java Instantiation
Keith Dahlby
dahlbyk at softhome.net
Sun Jun 29 02:28:52 CDT 2003
Just a quick question about Java object instantiation...
Why would one want to use:
DocumentHandler h =
Class.forName("org.xml.sax.DocumentHandler").newInstance();
instead of:
DocumentHandler h = new org.xml.sax.DocumentHandler();
to make an instance of this object (or any, for that matter)?
I've looked in my references and haven't found an acceptable answer. TIA!
Cheers ~ K
More information about the thelist
mailing list