When we execute a query to retrieve data from a table using java application, the output of the query is stored in ResultSet object in a tabular format. A ResultSet object maintains a cursor that enables us to move through the rows stored in the ResultSet object.
|By default the ResultSet object maintains a cursor that moves in the forward direction only. As a result it move from first row to last row in the ResultSet. We can not update the ResultSet object. The cursor in the ResultSet object initially point before the first row.