Resultset and Rowset


A ResultSet maintains a connection to a database and because
of that it can’t be serialized and also we cant pass the
Resultset object from one class to other class across the
network.

RowSet is a disconnected, serializable version of a JDBC
ResultSet and also the RowSet extends the ResultSet
interface so it has all the methods of ResultSet. The RowSet
can be serialized because it doesn’t have a connection to
any database and also it can be sent from one class to
another across the network. 
A RowSet object contains a set of rows from a result set or
some other source of tabular data, like a file or
spreadsheet.

A ResultSet object represents the output table of data
resulted from a SELECT query statement.The data in a
ResultSet object is organized in rows and columns 



0 comments: