ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the difference between Resultset and Rowset.
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between Resultset and Rowset.
Answer
# 1
A RowSet object contains a set of rows from a result set or 
some other source of tabular data, like a file or 
spreadsheet.

A ResultSet object represents the output table of data 
resulted from a SELECT query statement.The data in a 
ResultSet object is organized in rows and columns
 
Is This Answer Correct ?    4 Yes 4 No
Nisha
 
  Re: What is the difference between Resultset and Rowset.
Answer
# 2
ResultSet is not serialized whereas Rowset is serialized.
 
Is This Answer Correct ?    6 Yes 1 No
Praveen
 
 
 
  Re: What is the difference between Resultset and Rowset.
Answer
# 3
ResultSet contains the result of the SQL query and it has 
the connectivity with the records in the database. To avoid 
the connectivity after getting the result use RowSet or 
CacheRowSet. The ResultSet is the parent class of Rowset 
and CacheRowSet.
 
Is This Answer Correct ?    4 Yes 0 No
Lalit
 
  Re: What is the difference between Resultset and Rowset.
Answer
# 4
A resultset maintains a connection to the database.
A rowset can be disconnected once it is populated with data 
from the table.
resultset is not serializable
rowset is a serializable version of resultset and also it 
extends resultset interface, so all the methods are present 
in rowset also.
 
Is This Answer Correct ?    3 Yes 1 No
Anand G
 
  Re: What is the difference between Resultset and Rowset.
Answer
# 5
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 ?    1 Yes 0 No
Nidhi Varshney
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is deadlock and how to avoid this?  2
What is an Iterator interface?  2
What is the difference between getCodeBase and getDocumentBase methods?  1
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?  5
what is the difference between AWT and SWING what is the advantage of using swing?  3
How do u provide security in java  1
What are E and PI?  1
whats is inheritance? HCL14
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?  3
Can we have a abstract class withought any method? What is a purspose of this?  1
What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?  2
Can we declare an anonymous class as both extending a class and implementing an interface? Wipro7
Where the CardLayout is used?  1
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread? TCS2
Can a double value be cast to a byte?  3
What is Vector?Can you elaborate how Vector is Thread safe?  3
What is the purpose of setAutoCommit() ? Google1
if two references are having same hash codes,is that means those are refering to same object? CTS4
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); } Logica-CMG8
What is HashTable?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com