Tutorial Prep for week 11
Read the remainder of chapter 22 from the text then print
this page and complete the following questions:
List three constructors for the Vector class. For each
one show how to use it to instantiate a Vector.
1.
2.
3.
Explain two advantages of using a Vector instead of an array.
1.
2.
Explain one disadvantage of using a Vector instead of an array.
1.
Which method(s) from the Vector class adds a new element to the vector?
Show how each is called.
Which method(s) from the Vector class make the size of the vector decrease?
Again show how each is called.