aspose file tools
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
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.
wood burning stoves
subject: Class.forName() -- doubt