Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can we connect to db without using getConnection()
method

Answer Posted / naveen

it is not possible to get the connection from db server
without using getConnection();method, because
getConnection()method will take 3 paramaeters like
url,username,pwd......without this a javapgm will not
connect to db server. and getConnection method returns
connectionobject ..........

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?

986


How java can be connected to a database?

1092


Does jdbctemplate use prepared statements?

905


What is jdbc architecture in java?

936


What are the different types of resultset?

967


What is odbc and jdbc drivers?

948


When do we get java.sql.SQLException: No suitable driver found?

960


What are the different types of locking in JDBC?

1007


How do I check in my code whether a maximum limit of database connections have been reached?

986


What are drivers available?

1017


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

981


What is a lock in jdbc?

946


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

994


What are types of jdbc drivers?

987


What are the types of statements in jdbc?

978