what is ResultSet?
ResultSet is a java object that is used for database connectivity to hold the data returned by a select query. When we run a select query it returns us the data in a table format with each row representing one logical group of data with a number of columns.The result set would contain this table of data and each row can be accessed one by one. we can use the resultset.get() methods to get the data from it.
ResultSet is a class in java.sql.* package that is use to get data from java.sql.Connection object by java.sql.Statement Object.