41. Explain Basic Steps in writing a Java program using JDBC

Basically a Java program implementing JDBC performs the following functions:

  • Load a JDBC driver.

  • Establish a database connection.

  • Optionally interrogate the database for capability subset.

  • Optionally retrieve schema metadata information.

  • Construct a SQL or callable statement object and send queries or database tasks.

  • Execute the database tasks or process resultsets.

  • Close the statement object and resultset.

  • Close the connection.

2 Responses

  1. […] Close the statement object and resultset.·         Close the connection. Add comment September 8th, […]

  2. Hi there Dear, are you genuinely visiting this website regularly, if so then you will definitely get good know-how.

Leave a comment