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 is dynamic binding(late binding)?
Is java type safe?
What is abstraction in java?
How transient variable is different from volatile variable?
Is array a class in java?
what is the final keyword denotes in java?
How do I find and replace in word?
Is hashset ordered?
how do I create a runnable with inheritance? : Java thread
What is the difference between dom and sax parser in java?
what are the states associated in the thread? : Java thread
Can we restart a thread already started in java?
What are the important methods of java exception class?
what is comparable and comparator interface?
Explain restrictions for using anonymous inner classes?