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

Answers were Sorted based on User's Feedback



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

Answer / sitaram

without getConnection(), we can't connect the DB.

Is This Answer Correct ?    7 Yes 2 No

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

Answer / kanu butani

Use Hibernate framework to connect to the database without
using getConnection method.
Hibernate Performing the usual DB operations

Is This Answer Correct ?    8 Yes 5 No

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

Answer / john

i suggest shine Enterprise farmework
use the jconnection package
it contains something like hibernate
and i removed the .xml files
enjoy it
http://sourceforge.net/projects/shine-enterpris/files/

Is This Answer Correct ?    0 Yes 0 No

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

Answer / 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

More JDBC Interview Questions

What are the packages are used in jdbc?

0 Answers  


Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");

2 Answers  


JDBC Drivers properties?

1 Answers   Infosys,


What is jdbc odbc in java?

0 Answers  


How to use JDBC to connect Microsoft Access?

0 Answers  






What is resultset in jdbc with example?

0 Answers  


What is jdbc architecture in java?

0 Answers  


What is a statement?

0 Answers  


Under what circumstances, that all four drivers are used?

0 Answers   TCS,


How to find number of records in result set?

2 Answers  


Is JDBC a language or Application?

3 Answers  


Why do we need jdbc api?

0 Answers  


Categories