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 is an encrypted internet connection?

0 Answers  


What does Class.forName return?

8 Answers   IBM,


callable is interface or class ?

9 Answers   Fidelity,


How will you perform truncation using JDBC?

0 Answers  


Can the JDBC-ODBC Bridge be used with applets?

2 Answers  


What happens if we don't close the connection in jdbc?

0 Answers  


What is Connection Pooling ??? How we set up a particular connection within connection pooling ????

2 Answers   Cognizant,


What do you understand by DDL and DML statements?

0 Answers  


What is statement and preparedstatement in java?

0 Answers  


What does the jdbc connection interface?

0 Answers  


how can we get the metaData (columnNames) from a table which has no Records..

2 Answers  


How can a java objects be stored in database?

3 Answers   IBM,


Categories