what is difference between vector and arraylist?.
Answer Posted / srinu
vector:-
1)Vector is a synchronized.
2)These are Thread safe.
3)performance slow
4)it implements
serializible,list,collection,iterable,Randomaccess,clonable
interfaces.
5)vector is optimum storage management.
Arraylist:-
1)ArrayList is not synchronized.
2)these are not safe.
3)performance is high.
4)it implements
serializible,list,collection,iterable,Randomaccess,clonable
interfaces.
5)ArrayList is not a optimum storage management
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the Spring2.5 MVC Navigation flow?
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
How is hashset maintained in memory by java ?
Should we create system software ( e.g operating system ) in java ?
my interviewer asked me what technical specification you used how to answer that question
please mail me the interview question based on java/j2ee
What is the use of the list interface in the java collection? : java collections
What is iterator in the java collections framework? : java collections
What is the enumerator of the java collection framework? : java collections
What are the interfaces in java collections? : java collections
What is the use of hashcode in java ?
Which sorting algorithm is used by collections.sort() in java ?
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What are the types of java collections? : java collections
What are the considerations to be made in case of loops in java ?