title: do i have to write Class.forname("com.mysql.jdbc.Driver") in every method in java?
body: <p>While writing an application that interacts with a database the only way I can get it to work is if I write <code>Class.forName("com.mysql.jdbc.Driver")</code> in every method that interacts with the database.</p>
  
  <p>Is this the only way to do it or is there a simpler way?</p>