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 are common JDBC Exceptions?

550


Name the types of jdbc drivers.

552


Explain the two tier and three tier architecture of jdbc.

527


What is an SQL Locator?

591


State the three different ways in which you can create a table?

522






What are different types of JDBC Drivers?

536


How can you create jdbc statements?

538


How can we execute stored procedures using callablestatement?

473


What does the jdbc connection interface?

541


Which database is used for java?

530


What does executeupdate return in jdbc?

512


Write an sql to find all records having all numeric characters in a field ?

493


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

665


What is executeupdate in java?

476


What is meant by jdbc and odbc?

488