Answer Posted / 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 |
Post New Answer View All Answers
Why a client should be multithreading? Explain.
What is the difference between long.class and long.type?
what are getters and setters in Java with examples?
Why doesn’t the focus feature on the tag work in every circumstance?
To what value is a variable of the string type automatically initialized?
Should synchronization primitives be used on bean methods?
Write a program to show synchronization?
How to implement RMI in Java?
What are the pros and cons of detached objects?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
Why are some of the class and element names counter-intuitive?
Explain about RMI Architecture?
What are callback interfaces?
Is the session factory thread safe?
What restrictions are placed on the location of a package statement within a source code file?