Question:
What are the flow statements of JDBC?
Answer:
A URL string -->getConnection-->DriverManager-->Driver-->Connection-->Statement-->executeQuery-->ResultSet. Source: CoolInterview.com
1). Register the Driver 2) load the Driver 3)get the connection 4) create the statement 5) Execute the query 6) fetch the results with ResultSet 7. Close the Statement 8. Close the connection Source: CoolInterview.com
Answered by: Bhargava | Date: 2/4/2010
| Contact Bhargava
steps involved in jdbc 1)register the driver. 2)load the driver. 3)get the connection. 4)create statement 5)fetch the sql statement to database 5)return result into resultset 6)close statement. 7)close connection. 7 Source: CoolInterview.com
Answered by: vaibhav | Date: 5/13/2010
| Contact vaibhav
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|