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
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What do you understand by synchronization? Why is it important?
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
What are the considerations to be made in case of loops in java ?
What is the Spring2.5 MVC Navigation flow?
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What are the different types of classes implemented in the set interfaces? : java collections
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
What are maps interfaces in the java collections? : java collections
who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.
What is an algorithm in java collection framework? : java collections
please mail me the interview question based on java/j2ee
my interviewer asked me what technical specification you used how to answer that question
What are the differences between the java collection and the java list? : java collections
What are the types of java collections? : java collections