Which package is the class Vector located? a. java.io b. java.lang c. java.util
ID: 3722407 • Letter: W
Question
Which package is the class Vector located?
a. java.io
b. java.lang
c. java.util
d. java.text
Which method of the class vector would you use to remove an element at a specific location?
a. removeAllElements
b. removeElement
c. removeElementAt
d. removeLocation
An array created during the execution of a program is called a ____ array.
a. static
b. final
c. just in time
d. dynamic
The length of the list is the maximum size of the list.
a. true
b. false
There is a method in the class Vector that removes all elements of the vector.
a. true
b. false
The method ____ removes the elements from the list, leaving it empty.
a. deleteElements
b. removeAt
c. clearList
d. deleteList
Explanation / Answer
1.
c. java.util.vector is used for including vector class.
2.b
java.util.Vector.remove(int index)
3.
d. i.e. at execution of program dynamic array is created.
4.
true
5.
true
vector.clear() method is used
6.
c
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.