What will Class.forName do while loading drivers?- When you have loaded a driver, it is available for making a connection with a DBMS. - It is used to create an instance of a driver and register it with the DriverManager. - Before connecting to the database we need to load a driver. - Whenever the code tries to open a connection we get a no driver available SQLException being thrown. - It is mostly caused by the driver not being in the class path or the value in the parameter is not correct.
|