top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the different between ResultSet and RowSet in java?

+1 vote
405 views
What is the different between ResultSet and RowSet in java?
posted Jan 21, 2018 by Frank Lee

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

RowSet objects are derived from ResultSet, so they have all the features of ResultSet with some additional features. One of the huge benefit of RowSet is that they can be disconnected and that makes it lightweight and easy to transfer over a network.

Whether to use ResultSet or RowSet depends on your requirements but if you are planning to use ResultSet for longer duration, then a disconnected RowSet is better choice to free database resources.

answer Jan 29, 2018 by Ammy Jack
...