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

Explain the life cycle of jdbc.

0 Answers  


List the common jdbc exceptions ?

0 Answers  


What do you understand by jdbc datasource?

0 Answers  


How to test jdbc connection to sql server?

0 Answers  


When do we use execute method in java jdbc?

0 Answers  






Why would you use setautocommit(false) in jdbc?

0 Answers  


I have the choice of manipulating database data using a byte[] or a java.sql.blob. Which has best performance?

0 Answers  


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

0 Answers  


What is jdbc and odbc?

0 Answers  


wa is connection pooling? how do u create connection pooling?wat is use connection pooling?

1 Answers   Covansys,


What is the JDBC syntax for using a literal or variable in a standard Statement?

0 Answers  


What is a java driver?

0 Answers  


Categories