Which of the following is false about Vector class in Java?

2024

Which of the following is false about Vector class in Java?

Answer: D. It is part of java.io package.Vector belongs to the java.util package, is synchronized, and can grow or shrink. It is not part of java.io.

  1. A.

    It is part of java.util package.

  2. B.

    It is synchronized.

  3. C.

    It can grow or shrink as needed.

  4. D.

    It is part of java.io package.

  5. E.

    Question not attempted

Attempted by 282 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.

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…