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

Java Programming Language >   Class, Object and Methods in java >   About Java Tutorial  

Short Question

1036


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.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.