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
What are nested classes in java?
What do you mean by platform independence?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is the finalize method do?
What is tostring () method?
Write a program to reverse array in place?
What is the static method?
What are the different types of data structures in java?
What is immutable class in java?
Can we overload final method in java?
What is the difference between checked exception and unchecked exception?
State the difference between creating string as new () and literal.
What is entry in java?
What are the different types of constructor?
Write a function to print Fibonacci series and Tribonacci series?