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
Can we create a class inside a class in java?
What is difference between synchronize and concurrent collection in java?
Where are variables stored?
Can java arraylist hold different types?
State some situations where exceptions may arise in java?
Can we compare two strings in java?
What is use of inner class in java?
How is the marker interface used in Java?
Explain the difference between serializable and externalizable in java?
What is the use of predicate in java 8?
Explain the use of shift operator in java. Can you give some examples?
Is it possible to override private or static method in java?
What is stored procedure. How do you create stored procedure ?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is the use of bufferedreader?