Explain the sequence of steps to connect to the database?

Answer Posted / v.kannan

1.Register the Driver
2.Mention the Database Name
3.get the Connection through Driver Manager
4.send the Sql Query
5.get the result through ResultSet

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a rollback in jdbc?

514


What are the 4 types of jdbc drivers?

500


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

469


Which type of driver is unique in jdbc?

481


Is jdbc a protocol?

492






What are the differences between setmaxrows(int) and setfetchsize(int)?

534


What is setautocommit in jdbc?

479


Is jdbc an api?

496


What is metadata in programming?

515


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

580


What is jdbc type?

501


Name different methods for getting streams.

529


How can we execute stored procedures?

559


Is possible to open a connection to a database with exclusive mode with JDBC?

531


What is jdbc connection string?

497