title: which one of the two getConnection method is better to use in DriverManager class
body: <p>I was just wondering that why would the driver manager class provides many overloaded 
  methods to get connection to the database. Some of them are</p>
  
  <pre><code>getConnection(String url, String user, String password) 
  getConnection(String url, Properties info)
  </code></pre>
  
  <p>The others can be found at  <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/DriverManager.html" rel="nofollow">http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/DriverManager.html</a></p>
  
  <p>You need to have the same set of information before hand you get a connection to database 
  in each case but each of the <code>getConnection()</code> methods has a different way to access that information. I have seen people using all of them without any preference for a particular(as far as I feel). </p>
  
  <p>My question is that is there any preference in terms of coding style because of which use of one may be preferred over other. If not isn't this overloading redundant?</p>