Asked by
Punam Prasad
on Oct 27, 2024Verified
What does the following statement do?
Vector thisVector = new Vector() ;
A) It creates an empty vector to create a vector of Double objects.
B) It creates a vector with 10 elements to create a vector of Double objects.
C) This statement does not do anything.
D) It creates an array of Double objects.
Empty Vector
A vector data structure that contains no elements and has a size of zero.
- Comprehend the ability of vector objects to adjust their size dynamically.
- Comprehend the distinction and connection between array objects and primitive data types in Java.
Verified Answer
FQ
Learning Objectives
- Comprehend the ability of vector objects to adjust their size dynamically.
- Comprehend the distinction and connection between array objects and primitive data types in Java.