JDBC Introduction
Standard Steps followed for developing JDBC(JDBC4.X) Application ======================================================= 1. Load and register the Driver 2. Establish the Connection b/w java application and database 3. Create a Statement Object 4. Send and execute the Query 5. Process the result from ResultSet 6. Close the Connection Step1: 1. Load and register the Driver A third party db vendor class which implements java.sql.Driver(I) is called as "Driver". This class Object we need to create and register it with JRE to set up JDBC environment to run jdbc applications. Note: public class com.mysql.cj.jdbc.Driver extends com.mysql.cj.jdbc.NonRegisteringDriver implements java.sql.Driver { public com.mysql.cj.jdbc.Driver() throws java.sql.SQLException; static {}; } In MySQL Jar, Driver class is implementing java.sql.Driver, so Driver class Object should be created and it should be registered to set up the JDBC environment inside JRE. 2. Establish the Connection b/w java applica...