Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 are restrictions on triggers?

0 Answers  


Why would you use setautocommit(false) in jdbc?

0 Answers  


Explain the role of driver in jdbc.

0 Answers  


Is jdbc faster than hibernate?

0 Answers  


Where is jdbc used?

0 Answers  






what does the method Class.forName returns?

4 Answers   Siemens, TCS,


what is callable statement?

6 Answers   Infogain,


which scenarios we go for jdbc,and which scenario we go for connection polling and wat r advantages and disadvantages using connection pooling.

2 Answers   TCS,


How many types of JDBC drivers are there and what are they?

2 Answers   TCS,


How many rowset are available in jdbc?

0 Answers  


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

2 Answers   Cognizant,


how to use CallableStatement? specially how to use their index given ..

1 Answers  






Categories