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 |
Dear freinds... I want to know how to write self mapping for a table using hibernate?
what are the software's needed to develop advanced java 3 tier application project
What is Stream and Types?
Is it possible to stop the execution of a method before completion in a sessionbean?
what is an isolation level?
Explain the purposes of methods wait(), notify(), notifyAll ()?
Explain bind(), rebind(), unbind() and lookup() methods?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What is Remote Server?
What is the relationship between an event-listener interface and an event-adapter class?
What is the initial state, When a thread is created and started?
what is the diffrence between banking and insurance domain?