-2

actually i already know some ways to load JDBC Driver with support of DriverManager

1)Class.forName(“oracle.jdbc.driver.OracleDriver”);

2)DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

I am beginner in Java i need to know more methods by that we can load JDBC

Shaikh Nadeem
  • 29
  • 3
  • 10
  • 4
    Since Java 7 you don't need to register JDBC 4 drivers. Apart of that, in real world applications you won't open connections manually but use a database connection pool that will handle this for you. – Luiggi Mendoza Jan 23 '15 at 17:00
  • http://stackoverflow.com/questions/2835090/how-to-establish-a-connection-pool-in-jdbc – gknicker Jan 23 '15 at 17:07
  • yeah you are correct , but for information i just need some more other methods if available ...can you help me ? :) – Shaikh Nadeem Jan 23 '15 at 17:42
  • Why? You're never going to use them. And what makes you think there are any more? And JDBC 4 is dated 2007. Eight years ago. – user207421 Jan 23 '15 at 17:45

1 Answers1

0

actually i just want to more type of JDBC drive already i know TYPE1,TYPE2,TYPE3, and TYPE4 instead of any other JDBC driver is available ? but some where i found TYPE5 hence they are not Officially Recommended by SUN micro system

Shaikh Nadeem
  • 29
  • 3
  • 10