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   SiteMap shows list of All Categories in this site.
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 difference between set and list in collection?
 Question Submitted By :: Chandranallam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between set and list in collection?
Answer
# 1
set inter is used to represent unique elements where as in 
list interface elements need not be unique ArrayList, 
Vector and LinkeList implememts list interface.Hashset and 
LinkedHastSet implements set interface
 
Is This Answer Correct ?    1 Yes 0 No
Harikrishna
 
  Re: what is difference between set and list in collection?
Answer
# 2
Set does not permit duplicate elements, List does. Also, Set
does not guarantee any iteration order, whereas List does.
 
Is This Answer Correct ?    4 Yes 1 No
Chris
 
 
 
  Re: what is difference between set and list in collection?
Answer
# 3
set:
1)set interface extended from collection interface
2)set does not allow duplicated values
3)set interface contain concreated classes(TreeSet,HashSet)
4)set interface retrive the data only forward Direction
only( only Iterator is their)
5)in set object add an element at end only
6)set interface contain one sub interface(sorted set)

List
1)List interface extended from collection interface.
2)List allows duplicated values
3)List interface contain concreated
classes(ArrayList,LinkedList)
4)in List object add an element at specific(dynamic)
insertion is possible
5)List interface retrive the data  forward Direction and
backword directions(ListIterator is their)
6)List interface  does not contain ony sub interface
 
Is This Answer Correct ?    2 Yes 0 No
Srinu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Difference between array and arraylist. Sai-Softech4
Java support what type of parameter passing ? Wipro6
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
wht is mean by dirty read?  1
What is thread? BMC5
how cani read a command line argument?(usingfile object).  3
What is the difference between C++ & Java? Syntel21
Is there is any error if you have multiple main methods in the same class? Wipro9
what is meant by UP& DOWN casting in java?  4
What is the default initialized value of a boolean type variable?  3
what is difference between colection and collections? Tech-Mahindra8
How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u. CSC8
Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?  1
What is the difference between Trusted and Untrusted Applet ? IBM1
What is the life cycle of an Applet ?  1
I have a class which is abstract which contains only the abstract methods. This is similar to an interface. Then, if i have given a choice to choose one of them. Which one i have to choose and why?  4
What is the superclass of exception?  2
Why are the methods of the Math class are static?  1
How to call static method? Epoch3
Can we instantiate Interfaces? Ericsson4
 
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