Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is meant by LOADING DRIVER CLASS and RIGESTERING DRIVER CLASS

 
Avinash Babu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Avinash.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic