Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
531 views
in Programming by (72.7k points)
closed by
In Java, the Dynamic Array are known as:
1. Vectors
2. Cycle
3. Remote
4. Kubernotos

1 Answer

0 votes
by (121k points)
selected by
 
Best answer
Correct Answer - Option 1 : Vectors

Concept: 

Dynamic arrays are those arrays that are allocated memory at the run time with the help of a heap. Thus Dynamic array can change its size during run time

A dynamic array expands as you add more elements. So you don't need to determine the size ahead of time.

 

Vector is like a dynamic array that can grow or shrink its size. Unlike an array, we can store n-number of elements in it as there is no size limit. It is a part of the Java Collection framework since Java 1.2. It is found in java.util package and implements the List interface, so we can use all the methods of the List interface here. It is similar to the ArrayList, but with two differences-

  • Vector is synchronized.
  • Java Vector contains many legacy methods that are not part of a collections framework.

Java Vector class Declaration

public class Vector<E>  

extends Object<E>  

implements List<E>, Cloneable, Serializable  

Hence the correct answer is option 1

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...