What is the Vector class?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the Vector class?
Rating:
The Vector class is used to create a generic dynamic array known as vector. It is contained in the java.util package. It implements the List interface. A vector can be created with or without explicitly specifying its size. Vector is synchronized. It can be expanded to hold more elements when needed. As all classes in Java inherit from the Object class, a vector can hold objects of any class. However, it cannot directly store primitive data types.
Rating:
Was this information helpful?
Other articles
- What are the differences between exceptions and assertions?
- What are the rules for method overriding?
- What is a Player?
- What is the setTimeout() method?
- What are the setDefault() and getDefault() methods?