The following sequence of events typically occurs in JDBC applications:
The ResultSet object contains the data returned from the SQL statement, but exposes it one row at a time (similar to the way a cursor works).
The current row (the row in the result set exposed through the ResultSet object) advances one row.
A boolean value returns to indicate whether there is a row to advance to.
Java objects can use JDBC objects to interact with a database and get data for their own use.