Tuesday, November 29, 2011

What is the difference between Resultset and Rowset?

RowSets are part of JDBC 2.0 API, and there are quite a few implementations to suit your needs (CachedRowSet, JDBCRowSet, WebRowSet). Essentially a row set is a JavaBean that contains database data. The implementation can store the data offline, or it can simply wrap a connection to make a result set look like a JavaBean. You could even use a row set to access data communicating over HTTP to a servlet, which provides the data for the bean.: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.
Category:JDBC Interview Questions

No comments:

Post a Comment