WHAT IS THE DIFFERENCE BETWEEN THE SIZE AND CAPACITY OF A VECTOR?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
Java 
 944  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    What is the difference between the size and capacity of a Vector?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!