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 classes in the java collection framework? : java collections
what is mean by hasing and maping in java platform and advantage?
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What is deque in the java collections framework? : java collections
What are the different types of ways where you can iterate over a list? : java collections
Which interface does java.util.hashtable implement?
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 java collections? : java collections
What are the different types of collections views being provided by the map interface? : java collections
What are the uses of the set interfaces in the java collections? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What are the different types of features of the java collections framework? : java collections
What are maps interfaces in the java collections? : java collections