What is the difference between Resultset and Rowset.

Answer Posted / nidhi varshney

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.

Is This Answer Correct ?    44 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does isempty check for null?

555


Explain serialization and deserialization in java?

551


What is a predicate method?

560


What’s a deadlock?

607


How a variable is stored in memory?

497






Can string be considered as a keyword?

566


What are the elements of java?

560


How to perform binary search in java?

570


What is pass by value?

510


What are multiple inheritances?

579


What is the += operator called?

577


What is starvation?

679


What is the difference between an interface and an abstract class?

536


How are this() and super() used with constructors in java programming?

568


What is sorting in java?

530