Without using of Class.forName(? ?), how do you connect to
db?

Answers were Sorted based on User's Feedback



Without using of Class.forName(? ?), how do you connect to db?..

Answer / niranjanravi

through DriverManager.RegisterDriver

Is This Answer Correct ?    10 Yes 1 No

Without using of Class.forName(? ?), how do you connect to db?..

Answer / kalyan

by using datasource object, generally datasource is
confiured at app server specifying jndi name , data source
name, driver name, user name, and password.

by getting datasource object using jndi lookup, we can get
connection.

Is This Answer Correct ?    3 Yes 1 No

Without using of Class.forName(? ?), how do you connect to db?..

Answer / parida

To Niranjanravi
can u give me an example of that?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

Are there any ODBC drivers that do not work with the JDBC- ODBC Bridge?

2 Answers  


PreparedStatement is a pre compiled statement but where it's pre compiled ?

4 Answers  


What is the purpose of jdbc resultset interface?

0 Answers  


How can I retrieve a String or other object type without creating a new object each time?

0 Answers  


What is correlated subquery?

0 Answers   emc2, JK Technosoft,






What is difference between statement and preparedstatement in jdbc?

0 Answers  


What are the differences between stored procedure and functions?

0 Answers  


What is jdbc odbc connection?

0 Answers  


Describe the steps needed to execute a sql query using jdbc.

0 Answers  


What is database connection pooling? Advantages of using a connection pool?

0 Answers  


What are the new features available in jdbc 4.0?

0 Answers  


Is java a database?

0 Answers  


Categories