Java programming: A bit of understanding about Vector
Source: Internet
Author: User
Java programming: A bit of understanding about Vector-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1) Vector is called a Vector, so it is also a key-value function similar to Map.
2) The default constructor, the initial vector capacity is 10, and the dynamic increment is 0.
3) understanding of dynamic increment: The increment factor. It refers to the increase in storage space when the storage capacity is insufficient. The value range is [0, 1). If it is 0, it doubles. If it is (0, 1), it increases proportionally.
4) Vector provides us with dynamically increased storage space. An obvious difference from an array is that the elements in the array can only be of the same type, and any type can be stored in the Vector.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service