which one of the two getConnection method is better to use in DriverManager class
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

    getConnection(String url, String user, String password) 
    getConnection(String url, Properties info)

The others can be found at  http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/DriverManager.html

You need to have the same set of information before hand you get a connection to database 
in each case but each of the `getConnection()` 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). 

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?
which one of the two getConnection method is better to use in DriverManager class
===

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

    getConnection(String url, String user, String password) 
    getConnection(String url, Properties info)

The others can be found at  http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/DriverManager.html

You need to have the same set of information before hand you get a connection to database 
in each case but each of the `getConnection()` 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). 

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?