Interview Question in JDBC


 

Interview Question :: What are the steps required to execute a query in JDBC?

 What are the steps required to execute a query in JDBC?

by ksk
VoteNowAnswers to "What are the steps required to execute a query in JDBC?"

First we need to create an instance of a JDBC driver or load JDBC drivers, then we need to register this driver with DriverManager class. Then we can open a connection. By using this connection , we can create a statement object and this object will help us to execute the query. 

by ksk