what is the difference between ArrayList and Vector

Answer Posted / vishu

In the above examples, need to change one thing. i.e
e. If you try to set v.ensureCapacity( >10), then
f. V.capacity();===20

if we put value between 11 to 20, the capacity will be 20,
after that it will increase if greater than 20.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Highest level event class of the event-delegation model?

3513


Differentiate between == and equals().

612


What are the different ways of implementing thread? Which one is more advantageous?

548


What is extension method in java?

574


What happens when a thrown exception is not handled?

595






Is void a return type?

570


What is a lock or purpose of locks in java?

605


How do you convert an int to a double in java?

608


What is the largest data type in java?

525


What are the disadvantages of using inner classes?

569


is it possible to instantiate the math class?

541


Tell me a few examples of final classes defined in Java API?

577


What are the java ide's? Explain

543


Explain the use of volatile field modifier?

649


Do I need to import java.lang package any time? Why?

757