Home » JAVA Programming » Java Basic » Question
  1. What data structure should be used when number of elements is fixed?
    1. Set
    2. Vector
    3. Array
    4. Array list
    5. None of these
Correct Option: C

Array list has variable size. Array is stored in contiguous memory. Hence, reading is faster. Also, array is memory efficient.



Your comments will be displayed only after manual approval.