Results 1 to 5 of 5
  1. #1
    james12 is offline Member
    Join Date
    Jun 2014
    Posts
    37
    Rep Power
    0

    Default difference between ArrayList and Vector class

    Hi My name is James iam a java fresher please let me know difference between ArrayList and Vector class

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,937
    Rep Power
    19

    Default Re: difference between ArrayList and Vector class

    Have you got some homework you're doing?
    Spamming the forum like this with questions that can be answered with a minimal amount of research might be frowned upon.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,435
    Blog Entries
    7
    Rep Power
    20

    Default Re: difference between ArrayList and Vector class

    What does the API documentation for those classes have to say about it?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,937
    Rep Power
    19

    Default Re: difference between ArrayList and Vector class

    Not again.
    Some sites don't like their text being ripped off wholesale you know.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Join Date
    Jul 2014
    Location
    United States
    Posts
    7
    Rep Power
    0

    Default Re: difference between ArrayList and Vector class

    Vector: ArrayList

    Vector class is synchronize. ArrayList is not synchronize

    Because of Thread-safe, Vector is slower than ArrayList ArrayList works faster

    Enumeration is used to iterate through the element of Vector Iterator is used to iterate through the element of ArrayList


    Regards

    [ ad links removed -- mod ]
    Last edited by JosAH; 07-02-2014 at 09:35 AM.

Similar Threads

  1. Difference between Vector and Arraylist
    By Lil_Aziz1 in forum New To Java
    Replies: 10
    Last Post: 09-04-2012, 09:18 PM
  2. What is the use of Vector where as Arraylist can be Synchronized?
    By muthukrishnan.muthu in forum New To Java
    Replies: 3
    Last Post: 07-31-2012, 01:02 PM
  3. Looking for a vector and metrix class
    By IIIExabyteIII in forum New To Java
    Replies: 3
    Last Post: 04-25-2012, 08:41 PM
  4. Replies: 1
    Last Post: 10-06-2011, 02:26 PM
  5. Replies: 3
    Last Post: 11-07-2009, 05:25 PM

Tags for this Thread

Posting Permissions

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