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

What is jdbc architecture in java?

0 Answers  


What is the meaning of “dirty read” in the database?

0 Answers  


How many types of resultset are there in jdbc?

0 Answers  


Can I get a null resultset?

0 Answers  


What is the purpose of the jdbc resultset interface?

0 Answers  


What is jdbc dialect?

0 Answers  


What is the advantage of namedparameterjdbctemplate?

0 Answers  


What is layer in communication?

0 Answers  


Is java a database?

0 Answers  


How to rollback a JDBC transaction?

0 Answers  


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

3 Answers   IBM,


What is the use of setFetchSize() and setMaxRows() methods in Statement?

0 Answers  


Categories