Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Class.forName
Deena Raj
Greenhorn
Posts: 7
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is the difference between Class.forName and creating an object using new Abc()
Paul Clapham
Marshal
Posts: 28177
95
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Class.forName() loads a class. The "new" operator creates an instance of a class.
Srikanth Ramu
Ranch Hand
Posts: 76
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Class.forName() returns the "Class" object associated with ABC() and not a new instance of ABC().
For more details refer:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html
Don't touch me. And dont' touch this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JDBC connectivity
An JDBC problem
Dynamically loading a class
what this method do in JDBC?
How to connect MySQL DB from JSP?
More...