In JDBC we get three types of statements:
i Statement Interface
ii PreparedStatement Interface
iii CallableStatement Interface
There is a relationship between above three statements:
The above three Statement Interfaces are given in java.sql package. PreparedStatement Interface extends Statement. It means PreparedStatement interface has more features than that statement interface, Callablestatement (interface) extends Prepared Statement.
It executes normal SQL statements with no IN and OUT parameters.
It executes parameterized SQL statement that supports IN parameter.
It executes parameterized SQL statement that invokes database procedure or function or supports IN and OUT parameter.