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 |
Name the class that is used to bind the server object with RMI Registry?
Is the session factory thread safe?
Difference between sleep and suspend?
What is the difference between Super and This Keyword?
what is a non-repeatable read?
Can I map more than one table in a cmp?
Describe, in general, how java's garbage collector works?
What is scalable, portability in the view of J2EE?
What is a class loader? What are the different class loaders used by jvm?
wahts is mean by dynavalidatorform in struts/
What is Connection Pooling?
1 Answers Enteg Technologies, Infosys, Polaris,
What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-by-reference. (Note : Pls ignore syntx errors) public class One { sop ("Into One--"); } public class Two extends One{ sop ("Into Two--"); } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(One.a); sop(Two.a); sop(One.t); sop(Two.t); } }