scrollable resultset (TYPE_SCROLL_SENSITIVE) and non-scrollable resultset (TYPE_SCROLL_INSENSITIVE) are two types of Resultset objects based on their sensitivity. Resultset is an object used to access a database from a Java EE application.
The ResultSet object has a cursor that does not initially point to any record. Call the ResultSet first () function to move the cursor to the first record stored in the ResultSet object. The ResultSet get functions provide access to the contents of each column using the column name from the database table.
A non-scrollable result set can only be moved in the forward direction from the first to the last element, and also cannot be moved directly to any row in the database.
While the set of scrollable results can move in both directions, that is, forward or backward, and can also point to any row in the database at any given time, which makes it much more flexible.
Link: difference between scrollable ResultSet and non-scroll ResultSet?
source share