Results 1 to 3 of 3

Thread: collections

  1. #1
    Junior Member
    Join Date
    May 2010


    pls tell the differences between arraylist and vectorlist.And difference between set and sortedset.and explain sortedset and hashset.pls i am totally confused on these topics.

  2. #2
    Junior Member
    Join Date
    Mar 2010

    Re: collections

    1.Its not synchronized and its performance is good compare to vector.
    2.It does not support legacy method such as(hasMoreElements,nextElement)
    3.It support only iterator.

    1.Its synchronized.
    2.It support legacy method.
    3.It support both iterator and Enumeration.
    SortedSet: cannot be instantiate.
    2.the output value is in ascending order.
    1.the output value is not in ascending order.

  3. #3
    Junior Member
    Join Date
    May 2010

    Smile Re: collections

    Vector is synchronized but ArrayList isn't.

    In SortedSet objects are stored sortedly ,but in Set objects aren't stored sortedly.

    In HashSet objects are stored by using hash table

  4.  Sponsored Ads


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.