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
How messaging services are done, before release of JMS?
What is the map interface?
Are enterprise beans allowed to use thread.sleep()?
How can I scroll through list of pages like the search results in google?
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 are the types of scaling?
What is the difference between a static and a non-static inner class?
Do we need to override service() method
Difference between loadclass and class.forname?
How are the elements of a borderlayout organized?
What is the difference between the session.get() method and the session.load() method?
What are the different types of exception?
Which containers use a border layout as their default layout?
What is permgen or permanent generation?
Can constructors be synchronized in java?