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
Do I have to use jsps with my application?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
How would you detect a keypress in a jcombobox?
What are the different types of exception?
what is a portable component?
What is meant by method chaining?
What method is invoked to cause an object to begin executing as a separate thread?
Name three component subclasses that support painting?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
Can constructors be synchronized in java?
what are the advantages of JTA over JTS?
What is a modular application? What does module-relative mean?
Why a client should be multithreading? Explain.
What class is the top of the awt event hierarchy?
What are the different class loaders used by jvm?