Step to write JDBC program

  • Load the driver class
  • Establish the connection using url, username and password
  • Create the JDBC statement 
  • Prepare the SQL statement 
  • Submit SQL statement to Database
  • Get the result from database and process
  • Clean all the resources like connection statement etc...