ajit kumar wrote:
> in java what does it means getConnection function
That depends on from what type the method comes. What type are you discussing?
In general terms, such a method returns a reference to some sort of "connection" object given some sort of information about what "connection" you want. There are various classes and interfaces in the standard API alone thatsport a 'getConnection()' method, or in some cases more than one such method:
<http://download.oracle.com/javase/7/docs/api/java/sql/DriverManager.html#getConnection(java.lang.String) >
<
http://download.oracle.com/javase/7/...va.lang.String, java.util.Properties)>
<
http://download.oracle.com/javase/7/...va.lang.String, java.lang.String, java.lang.String)>
<http://download.oracle.com/javase/7/docs/api/javax/sql/DataSource.html#getConnection()>
<
http://download.oracle.com/javase/7/...va.lang.String, java.lang.String)>
<http://download.oracle.com/javase/7/docs/api/java/sql/Statement.html#getConnection()>
There may be others in third-party libraries.
--
Lew