Can we be done loading driver and registering driver by Using 'new" Oper.

Dear Sir..

Can we directly create the instance of any driver class by using the "new" operator and by this object can we call any method like getConnection() etc,will it return connection instance.

Is it necessary these all task from loading to registering the drivers all done by the help of class.forName().

Please i am very confuse ...help me..

[372 byte] By [Deepak_TCSa] at [2007-11-27 8:43:45]
# 1
A connection may be obtained from a driver instance . For example, the oracle.jdbc.OracleDriver class.Connection conn=new oracle.jdbc.OracleDriver().defaultConnection();The defaultConnection() method has been deprecated.
dvohra09a at 2007-7-12 20:44:16 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...