What is the difference between the size and capacity of a Vector?
Short Answer
Views 936
Answer:
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.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.