Java JDBC - Difference Between Row Set and Result Set Last Updated : 31 Jul, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report ResultSet characteristics are as follows: It maintains a connection to a database and because of that, it can’t be serialized.it can not pass the Result set object from one class to another class across the network.ResultSet object maintains a cursor pointing to its current row of data. Initially, the cursor is positioned before the first row. The next method moves the cursor to the next row, and because it returns false when there are no more rows in the ResultSet object, it can be used in a while loop to iterate through the result set.javax.sql.rowset.RowSet is a wrapper around a ResultSet which makes it possible to use the result set as a JavaBeans component in JDBC java.ResultSet alone cannot be used as a JavaBeans component. RowSet characteristics are as follows: it is a disconnected, serializable version of a JDBC ResultSet. it also extends the ResultSet interface.The Row Set can be serialized because it doesn’t have a connection to any database.The Row Set interface provides a set of JavaBeans properties that allow a Row Set instance to be configured to connect to a JDBC data source and read some data from the data source. A group of setter methods (setInt, setBytes, setString, and so on) provides a way to pass input parameters to a row set's command property.Row Set interface extends ResultSet interface in java.javax.sql.rowset.JdbcRowSet the subclass of Row Set is a wrapper around a ResultSet which makes it possible to use the result set as a JavaBeans component. Note: RowSet is alternate to ResultSet but is more effective than ResultSet Now let us wrap up differentiating them that is as follows: RowSet ResultSet RowSet is present in the javax.sql package ResultSet is present in the java.sql package A Row Set can be connected, disconnected from the database.A ResultSet always maintains the connection with the database.RowSet is scrollable providing more flexibility ResultSet by default is always forward only A Row Set object can be serialized.It cannot be serialized.You can pass a Row Set object over the network.ResultSet object cannot be passed other over the network. Result Set Object is a JavaBean object. RowSet using the RowSetProvider.newFactory().createJdb cRowSet() method. Result Set object is not a JavaBean object result set using the executeQuery() method ResultSetBy default, RowSet object is scrollable and updatable.By default, the ResultSet object is not scrollable or, updatable. Comment More infoAdvertise with us Next Article Java JDBC - Difference Between Row Set and Result Set R rachanapriyadarshnisamal Follow Improve Article Tags : Java Difference Between JDBC Practice Tags : Java Similar Reads Difference Between List and Set in Java The List interface allows storing the ordered collection. It is a child interface of Collection. It is an ordered collection of objects in which duplicate values are allowed to store. List preserves the insertion order, it allows positional access and insertion of elements. Declaration: public abstr 2 min read Difference between List, Set and Map in Java List interface in Java is a sub-interface of the Java collections interface. It contains the index-based methods to insert, update, delete, and search the elements. It can have duplicate elements also. We can also store the null elements in the list. List preserves the insertion order, it allows pos 4 min read Difference between ODBC and JDBC JDBC (Java Database Connectivity) and ODBC (Open Database Connectivity). These both are API standards used for connecting applications to databases. ODBC can be used by various programming languages as it is a general API standard. But JDBC is Java-specific and it provides a Java-based interface for 2 min read Difference Between LinkedList and LinkedHashSet in Java In this article you will learn difference between LinkedList and LinkedHashSet in java. Prerequisite: LinkedList : LinkedHashSet LinkedList class implements the List and Deque interface and extends from AbstractSequentialList class. LinkedList class uses doubly linked list to store the elements. It 3 min read Difference between HashMap and HashSet HashSet is an implementation of Set Interface which does not allow duplicate value. The main thing is, objects that are stored in HashSet must override equals() for check for equality, and hashCode() methods for no duplicate value are stored in our set. HashMap is an implementation of Map Interface, 4 min read Like