This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes Class.forName() -- doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Class.forName() -- doubt" Watch "Class.forName() -- doubt" New topic
Author

Class.forName() -- doubt

newgen pras
Ranch Hand

Joined: Jun 01, 2005
Posts: 34
Hi all ..

If we want to establish a jdbc connection ... at first we will load the driver for the corresponding database like
..My doubt
is why can't we import the corresponding driver class directly using import keyword..
I mean to ask is there any other thing particular there in using Class.forName() function ..
Thanks in advance ..

Regards
Prasanna
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This question is bein asked about once every two dsays at the moment

One answer is here.
 
 
subject: Class.forName() -- doubt