Insert rows into a table using JDBC PreparedStatement API

Program to insert rows into a table using JDBC’s java.sql.PreparedStatement API.

 Output:

In Database:                

Insert rows into a table using JDBC Statement API

Program to insert rows into a table using JDBC’s java.sql.Statement API.

Output:

In Database: