what is the difference between ArrayList and Vector
Answer Posted / ganesh nagalingam
I am adding some more points to the above answers.
Array list and Vector have one in common. They both
implement Random Access.
It is possible to provide synchronization using Array List
by using the utility methods in Collection.
| Is This Answer Correct ? | 12 Yes | 7 No |
Post New Answer View All Answers
Which class represents the socket that both the client and server use to communicate with each other?
Can a class declared as private be accessed outside it’s package?
What are the two categories of data types in the java programming language?
What is method overloading with type promotion?
What is the purpose of garbage collection in java, and when is it used?
Is java free for businesses?
Explain different types of wrapper classes in java?
How to obtain a performance profile of java program
What is the use of predicate in java 8?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
How can we break singleton in java?
What is string builder?
How to Sort Strings which are given in List and display in ascending order without using java api.
How does system arraycopy work in java?
Why does java not support pointers?