File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Programmer Certification (SCJP/OCPJP)
Difference between new and Class.newInstance()
Joined: Oct 31, 2012
Nov 23, 2012 00:35:24
please someone explain about newInstance() method.
Joined: Jan 28, 2008
Nov 23, 2012 02:05:31
you go .
newInstance create an object with default constructor. if there is no default constructor it throws error.
I agree. Here's the link:
subject: Difference between new and Class.newInstance()
different ways of instantiating
== and .equals()
request.getRequestDispatcher() vs getServletContext().getRequestDispatcher()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014