type 4 is nothing but thin driver
ifyou use oracle
the same procedure difference use
u have to use the following driver
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger");
ok any questions u can