Which of the following is false about Vector class in Java?
2024
Which of the following is false about Vector class in Java?
- A.
It is part of java.util package.
- B.
It is synchronized.
- C.
It can grow or shrink as needed.
- D.
It is part of java.io package.
- E.
Question not attempted
Attempted by 68 students.
Show answer & explanation
Correct answer: D
Vector belongs to the java.util package, is synchronized, and can grow or shrink. It is not part of java.io.