Get table records using JDBC PreparedStatement API

Program to get table records using JDBC’s java.sql.PreparedStatement API.

 Output:

 In Database:              

Get table records using JDBC Statement API

Program to get table records using JDBC’s java.sql.Statement API.

 Output:

 In Database: