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

How concurrent hashmap works?

613


Tell me how many ways are there to initialise an integer with a constant.

648


What is reflexive association?

1011


What are the 4 versions of java?

563


How does finally block differ from finalize() method?

589






Can a class be defined inside an interface?

565


Is this valid in java ? Can we instantiate interface in java?

548


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

630


What is the use of math abs in java?

552


How can we create a thread in java?

589


Can we create object of static class?

528


What does three dots mean in java?

653


What is a method in programming?

641


What is string in java with example?

493


Explain enumeration in java?

569