Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
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:
Tim Cooke
Campbell Ritchie
Ron McLeod
Junilu Lacar
Liutauras Vilda
Sheriffs:
Paul Clapham
Jeanne Boyarsky
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Piet Souris
Carey Brown
Bartenders:
Jesse Duncan
Frits Walraven
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Class.forName()
aakash bhatt
Ranch Hand
Posts: 182
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is the significance of the code Class.forName() while doing a connection?
Thanks,
aakash
Rodney Cabahug
Greenhorn
Posts: 1
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The Class.forName() will try to load the class that you specified as
string
argument. If the class that you specified cannot be found in the classpath, Class.forName() will throw a ClassNotFoundException.
[ ロドニー。カバフグ ]
Dirk Schreckmann
Sheriff
Posts: 7023
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm thinking that you're curious about the significance of this code in the context of
JDBC
. So, I'm moving this to the JDBC forum...
[
How To Ask Good Questions
] [
JavaRanch FAQ Wiki
] [
JavaRanch Radio
]
JulianInactive KennedyInactive
Ranch Hand
Posts: 823
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It registers the JDBC driver. Check the API docs for java.sql.Driver and/or java.sql.DriverManager for more info.
Don't get me started about those stupid
light bulbs
.
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...