A good answer might be:
Rough estimates are good enough. It is better to overestimate the capacity slightly than to underestimate it. A few unused slots do not hurt.Vector csClass = new Vector( 15, 5 ) ; |
Capacity and SizeA Vector object has a capacity and a size. To find out the current capacity of a Vector use its capacity() method. To find out the current size of a Vector use its size() method.
The elements of a Vector are accessed using an integer index. As with arrays, the index is an integer value that starts at 0.
|
QUESTION 6:What is the value of the following boolean expression? Click Here after you have answered the questionmyVector.size() <= myVector.capacity() |