aspose file tools*
The moose likes JDBC and the fly likes What is meant by LOADING DRIVER CLASS and RIGESTERING DRIVER CLASS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "What is meant by LOADING DRIVER CLASS and RIGESTERING DRIVER CLASS" Watch "What is meant by LOADING DRIVER CLASS and RIGESTERING DRIVER CLASS" New topic
Author

What is meant by LOADING DRIVER CLASS and RIGESTERING DRIVER CLASS

Avinash Babu
Greenhorn

Joined: Jul 07, 2010
Posts: 2
Hello everyone,

Directly i m coming to my doubt...

In JDBC we use

Class.forName("some vendor specific diverclass"); ----> this statement will load the corresponding driver class and in static block of driver class Registering code is present.

What is meant by LOADING DRIVER CLASS???
what is meant by Registering ???

and the DriverManager.getConnection("jdbc:---","--"," -- "); --> this vl return the object of a class which is implementing Connection interface...

Where that Connection interface implemented class is present?? is it present in Driver class which was loaded previously??

Please give me Clear Explanation in
1) Loading
2)Registering
and which comes first and which next???
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2510
    
  10

Welcome to JavaRanch, Avinash.


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is meant by LOADING DRIVER CLASS and RIGESTERING DRIVER CLASS