What is JDBC? Describe the steps needed to execute a SQL query using JDBC.
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What is JDBC? Describe the steps needed to execute a SQL query using JDBC.Database
Ans. The JDBC is a pure Java API used to execute SQL statements. It provides a set of classes and interfaces that can be used by developers to write database applications.

The steps needed to execute a SQL query using JDBC:

1. Open a connection to the database.
2. Execute a SQL statement.
3. Process th results.
4. Close the connection to the database.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   jdbc   db connectivity     Asked in 2 Companies      basic        frequent


Related Questions

 Do you like Native SQL Apis like JDBC or JPA / Hibernate ?
  What is connection pooling?
 Difference between JDBC and Hibernate ?
 Which interface is responsible for transaction management in JDBC ?
 What are the methods to connect to database in Java ?
 which one do you prefer - JDBC or Hibernate ?
 What is the difference between JDBC, Hibernate and ODBC ?
 What is difference between Spring jdbc template and Hibernate ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: