File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Class.forName() -- doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Class.forName() -- doubt" Watch "Class.forName() -- doubt" New topic

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 ..

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

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

One answer is here.
I agree. Here's the link:
subject: Class.forName() -- doubt
It's not a secret anymore!