Results 1 to 5 of 5
  1. #1
    james12 is offline Banned
    Join Date
    Jun 2014
    Posts
    36
    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 offline Moderator
    Join Date
    Apr 2009
    Posts
    12,921
    Rep Power
    22

    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
    14,313
    Blog Entries
    7
    Rep Power
    25

    Default Re: difference between ArrayList and Vector class

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

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,921
    Rep Power
    22

    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, 06: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
  •