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

What is an advantage of using the jdbc connection pool?

677


Describe odbc?

751


What are the methods which can verify the cursor particular position?

780


What is jdbc and jpa?

715


What is an SQL Locator?

776


State the three different ways in which you can create a table?

746


Is jdbc a protocol?

705


What are different parts of a url?

711


What is transaction processing in jdbc?

777


Explain about Join?

801


What is odbc and jdbc in dbms?

742


Why do we need jdbc?

813


What is connection data?

678


Which package contains jdbc api?

820


Compare jdbc and odbc and how is jdbc required in this context.

723