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
Write an sql to find all records having all numeric characters in a field ?
What do you mean by metadata and why we are using it?
What is new in JDBC 2.0?
Write an sql to find all records having all upper case alphanumeric characters in a field ?
How do I set properties for a JDBC driver and where are the properties stored?
Why do you use a data source object for a connection?
How can you create jdbc statements?
What is a lock in jdbc?
What is the use of the statement in jdbc?
What are the advantages of database connection pooling?
How many types of JDBC Drivers are present and what are they?
What is while rs next ())?
Name the new features added in jdbc 4.0.
What is difference between statement and preparedstatement in jdbc?
Under what circumstances, that all four drivers are used?