Hii friends
I am new in Java Development Please provide me the Solutions of my question.
Thanks
Regards
Diya
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hii friends
I am new in Java Development Please provide me the Solutions of my question.
Thanks
Regards
Diya
Vector and Array List both uses Array internally as data structure. They are dynamically re sizable. Difference is in the way they are internally re sized. By default, Vector doubles the size of its array when its size is increased. But, Array List increases by half of its size when its size is increased.
NEW TO JAVA
Always read the API documentation:
Vector (Java 2 Platform SE v1.4.2)
ArrayList (Java 2 Platform SE v1.4.2)
One major difference between the two is that one of them is synchronized: you may wish to avoid the overhead of synchronization if your application is single-threaded at the point of use of an object.