Explain vector in Java
•
Java
Vector implements the abstractlist abstract class and list interface. Like ArrayList, it is based on array storage
Vector is thread safe, and the synchronized keyword exists on most methods
Set size
The exceeding size is set to null
Is it empty
Set element on index
Add element
Capacity expansion
Insert element
Delete element
Only the first one can be deleted
-I'm a signature ------------------------------- here's just a signature
Explain in detail
The above is the vector in Java introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码