Home > DeveloperSection > Interviews > What is the difference between the size and capacity of a Vector?

Posted on    May-05-2011 12:35 AM

 Java Java 
 1 Answer(s)
  909  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    May-05-2011 12:00 AM

The size is the number of elements actually stored in the vector, while capacity is the maximum number of elements it can store at a given instance of time.

Don't want to miss updates? Please click the below button!

Follow MindStick