Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default Diff on Collection classes

    Difference Between Collections

    List:

    1.list will allow null values
    2.list will allow duplicate values
    3.order of elements in which they are enterd
    4.accessing elements by their index is possible
    5.retrieving using all the ways
    6.if want sublist it can posible

    Set:

    1.set will not allow duplicate values
    2.order of the elements may change in the set
    3.accessing elements by their index is not possible in case of sets.
    4.retrieving using Iterator's and Enumeration only
    5.if want sublit it won't posible

  2. #2
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    5

    Cool

    Quote Originally Posted by mopurilakshmikarreddy View Post
    Difference Between Collections

    List:

    1.list will allow null values
    2.list will allow duplicate values
    3.order of elements in which they are enterd
    4.accessing elements by their index is possible
    5.retrieving using all the ways
    6.if want sublist it can posible

    Set:

    1.set will not allow duplicate values
    2.order of the elements may change in the set
    3.accessing elements by their index is not possible in case of sets.
    4.retrieving using Iterator's and Enumeration only
    5.if want sublit it won't posible
    Hey, thanks! That helped.

    What's the next tip?
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

Similar Threads

  1. Netbeans Diff module
    By momcilo_jocic@yahoo.com in forum NetBeans
    Replies: 0
    Last Post: 07-16-2010, 06:06 PM
  2. diff between abstraction and inheritance
    By sandeepsai17 in forum New To Java
    Replies: 4
    Last Post: 05-24-2010, 06:04 AM
  3. diff b/w jsf and visual web jsf
    By kattavijay in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 03-16-2009, 11:44 AM
  4. JMeld 1.9 (Visual diff and merge)
    By Kees Kuip in forum Java Software
    Replies: 0
    Last Post: 03-08-2008, 10:18 AM
  5. diff between WML d XHTML
    By bakiya in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 11-02-2007, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •