title: Why need for using JDBC write Class.forName(...) for each connection?
body: <p>If I want to connect to database I should write code like this:</p>
  
  <pre><code>Class.forName("oracle.jdbc.driver.OracleDriver");
  Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521/mysidorservicename", "sysdba", "password123");
  </code></pre>
  
  <p>Why should I load the concrete driver before I connect to database? The result of the <code>Class.forName</code> statement is ignored - the loaded class is obviously not associated with the <code>DriverManager</code>. Can I just load all drivers used for different databases in moment of start application and will not write <code>Class.forName</code> code before each connection?</p>