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 are the types of java collections? : java collections
What is the difference between comparable and comparator in java.util pkg?
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 ?
What is the use of the list interface in the java collection? : java collections
What is deque in the java collections framework? : java collections
What are maps interfaces in the java collections? : java collections
What is the Spring2.5 MVC Navigation flow?
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What are the types of interface used in the java collections? : java collections
What are the different types of collections views being provided by the map interface? : java collections
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
what is mean by hasing and maping in java platform and advantage?
Which interface does java.util.hashtable implement?
What is iterator in the java collections framework? : java collections
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword