What is the Vector class?
What is Vector class?- The capability of implementing a growable array of object is provided by the class Vector.
- A Vector class implements the dynamic array that can grow and shrink at run time (dynamically).
- It resembles the implementation of ArrayList with a difference that Vector is synchronized.
- It reduces the amount of incremental reallocation.
- It is structurally modified at any time after the iterator is created.
|
How are this() and super() used with constructors?How are this() and super() used with constructors? - this() constructor is invoked within a method of a class, if the execution of the constructor is to be done before the functionality of that method...