diff vector arraylist
Answers were Sorted based on User's Feedback
Answer / lipu
Both classes are serializable.See the java doc for
clarification.
Please dont misguide readers
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / mahendar
vector is syncronized ,where as array list is not
syncronized
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / veerendra kumar
Here these two are belongs to Collections which are
in(java.util package),Diff is:
1.Vector:this class belongs to legasy collection framework
ArrayList:belongs to new Collection framework
2. Vector:it contains key&value pair
like:Vector v=new Vector();
v.add(0,"2");
v.add(1,"5");
ArrayList:it contains value only
3.Vector:it is Synchronized format
ArrayList:not synchronized
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / chandra
1) Arraylist is not synchronised while vector is
synchronised.
2) ArrayList doesn’t have a constructor for specifying the
incremental capacity, where as Vector has a constructor to
specify the initial capacity and incremental capacity.
3) Vector is serialized but arraylist is not.
Is This Answer Correct ? | 1 Yes | 4 No |
How do you download stubs from a Remote place?
Are enterprise beans allowed to use thread.sleep()?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is the highest-level event class of the event-delegation model?
What is J2EE?
Explain how will the struts know which action class to call when you submit a form?
What is the difference between a stub and a skeleton?
9 Answers ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,
What is colon_pkg_prefixes and what is its use?
what is default length of textfield ?
What is Stream and Types?
What is the need of serialize?
Which Taglibraury you used in your project? plz send me ans....which we r using generally