Vecto is synchronized and arraly is is unsynchronize
saikrishna, I think it's safe to assume that, with 400 posts to your name you know that we like people to use real words and why.
When you mistype or abbreviate words, it becomes difficult if not impossible for our non-English speaking members to read your post via language translation software. This is especially true when the words you're abbreviating are the names of Java classes.
Please take the time to proof-read your questions before posting them.
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
posted
0
hey Ben, dont be serious man i am not doing it intentionally man i was just out of time when i was typing that post I am sorry for that
and i am happy that i am reached to 400 posts
so i am asking it once again clearly with proof reading
can any once tell me the difference between Vector and ArrayList other than this Vector is Synchronized and ArrayList is unSynchronized
thanking you
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
posted
0
hey it is not abstractarraylist it is AbstractList just open it and see it for the code
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
[Ben]: Until 1.5 vector did not implement List. In 1.5 it does so, that difference went away.
As I recall, Vector was made to retroactively implement List the moment List was introduced into the JDK, back in JDK 1.2. This is backed up by the docs you cite:
"As of the Java 2 platform v1.2, this class has been retrofitted to implement List, so that it becomes a part of Java's collection framework. "
Cinux, you can find many more discussions of the differences between these two classes by entering "ArrayList" and "Vector" in the search form. I recommend JiG Beginner and Intermediate.