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

Write an sql to find all records having all numeric characters in a field ?

489


What do you mean by metadata and why we are using it?

560


What is new in JDBC 2.0?

572


Write an sql to find all records having all upper case alphanumeric characters in a field ?

527


How do I set properties for a JDBC driver and where are the properties stored?

491






Why do you use a data source object for a connection?

539


How can you create jdbc statements?

530


What is a lock in jdbc?

541


What is the use of the statement in jdbc?

490


What are the advantages of database connection pooling?

486


How many types of JDBC Drivers are present and what are they?

500


What is while rs next ())?

494


Name the new features added in jdbc 4.0.

545


What is difference between statement and preparedstatement in jdbc?

465


Under what circumstances, that all four drivers are used?

1900