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

Amit Singh

Total Post:562

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

    Post:562

    Points:2810
    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.

      Modified On Mar-27-2018 12:06:19 AM

Answer

NEWSLETTER

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