ResultSet holds data retrieved from a database query.
ResultSet provides methods to access and iterate over data fetched from the database. It acts like a table and is used to read query results. In an e-commerce app, a ResultSet might hold product information fetched from the database to display on a webpage.