ResultSet interface in JDBC applications | JDBC Tutorial Videos

This JDBC Tutorial Videos “ResultSet interface in JDBC applications” post providing information about what is the use of ResultSet interface and its functionality in JDBC applications.


 

ResultSet:

  • It is an interface.
  • Available in java.sql package.
  • It is not possible to collect complete table info using any primitive variable such as int, Boolean.
  • It is possible to collect a particular record from the table or entire table in the form of Object.
  • Hence return type is class type “ResultSet”.
  • Once we collect the information into ResultSet object, we can process that information using pre-defined methods of ResultSet.

ResultSet Object from Table

 

We can get the information of ResultSet object in 2 ways.

  1. By providing column number.
  2. By providing column name.

 

Share this