Does arraylist contain duplicates?



Does arraylist contain duplicates?..

Answer / Pawan Singh

Yes, ArrayList can and does allow duplicate elements. There is no restriction against inserting the same object multiple times.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is a graph?

4 Answers  


What method is used to place a value onto the top of a stack?

1 Answers  


What is priority queue in data structure?

1 Answers  


Tell me why can't constant values be used to define an array's initial size

1 Answers  


What do you know about the big-o notation and can you give some examples with respect to different data structures?

1 Answers  


Why do we need to use computers to help us sort lists?

1 Answers  


What is subtree?

1 Answers  


Is it possible to make an array volatile in java?

1 Answers  


Which is the parent class of abstractqueue class?

1 Answers  


How to create an Array?

1 Answers  


How are elements stored in hashset?

1 Answers  


Who invented quicksort?

1 Answers  


Categories