title: JDBC connection
body: <p>Hi folks 
  I am new to java programming.Can anyone suggest me some good reading for JDBC connection.
  I have to connect my java program to a database.
  Also while searching on net i found the following statement a bit confusing</p>
  
  <pre><code>1)Connection dbConnection=DriverManager.getConnection(url,”loginName”,”Password”)
  
  2)Statement statement = dbConnection.createStatement();
  </code></pre>
  
  <p>In the second statement "createStatement" is a method of "Interface Connection". </p>
  
  <p>How can i call a method of an interface??</p>