1.

What are difference between ResultSet and RowSet?

Answer»
ResultSetRowSet
ResultSet cannot be SERIALIZED as it handles the connection to the database.RowSet is disconnected from the database so it can be serialized.
By default, ResultSet object is non-SCROLLABLE and non-updatable.By default, the RowSet object is scrollable and updatable.
ResultSet object is not a JavaBean object.RowSet object is a JavaBean object.
ResultSet is returned by the executeQuery() method of Statement interfaceRowset extends the ResultSet interface and it is returned by calling the RowSetProvider.newFactory().createJdbcRowSet() method.
It is difficult to PASS ResultSet from one class to ANOTHER class as it has a connection with the database.It is EASIER to pass RowSet from one class to another class as it has no connection with the database.


Discussion

No Comment Found