what is difference between vector and arraylist?.
Answer Posted / srinivas
Vector is synchronized and compare to array list this slow
access, by defaulst the vector is 10,this is legacy class
Where as arraylist is unsynchronized and fast random
access,in arraylist there is no default size automatically
it is growable once the object is created it will be
allocated,this is advanced class.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What are the considerations to be made in case of loops in java ?
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What is java collection? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What are the different types of collections views being provided by the map interface? : java collections
What are the interfaces in java collections? : java collections
What is the difference between comparable and comparator in java.util pkg?
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 is an algorithm in java collection framework? : java collections
What are the differences between the java collection and the java list? : java collections
What are the uses of the set interfaces in the java collections? : java collections
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
please mail me the interview question based on java/j2ee
Should we create system software ( e.g operating system ) in java ?
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.?.