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
How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?
How java can be connected to a database?
Does jdbctemplate use prepared statements?
What is jdbc architecture in java?
What are the different types of resultset?
What is odbc and jdbc drivers?
When do we get java.sql.SQLException: No suitable driver found?
What are the different types of locking in JDBC?
How do I check in my code whether a maximum limit of database connections have been reached?
What are drivers available?
What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?
What is a lock in jdbc?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
What are types of jdbc drivers?
What are the types of statements in jdbc?