- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Explain the difference between RowSet and ResultSet in JDBC?
Following are the differences between RowSet and ResultSet:
ResultSet | RowSet |
---|---|
A ResultSet always maintains connection with the database. | A RowSet can be connected, disconnected from the database. |
It cannot be serialized. | A RowSet object can be serialized. |
ResultSet object cannot be passed other over network. | You can pass a RowSet object over the network. |
ResultSet object is not a JavaBean object You can create/get a result set using the executeQuery() method. | ResultSet Object is a JavaBean object. You can get a RowSet using the RowSetProvider.newFactory().createJdb cRowSet() method. |
By default, ResultSet object is not scrollable or, updatable. | By default, RowSet object is scrollable and updatable. |
Advertisements