Computer Science, asked by prasannachimkode, 6 hours ago

Which of the following options are properties of Array list in Java , A. Elements are inserted into a list in order of insertion B. Elemente care randomly inserted C. Elements are sorted before inserting,D. Duplicate elements are removed before insertion .
. only A
. A and C
. A and D
. A,C and D​

Answers

Answered by aneekbiswas921
0

Answer:

A and D

Explanation:

Answered by shilpa85475
0

A and C

Elements are inserted into a list in order of insertion.

Elements are sorted before inserting,

Explanation:

Lists maintain insertion order as just adding  new elements at the end of the beginning is the fastest implementation of the add( ) method.

The Element must be in ascending order, No duplicate elements in ArrayList<Integer> insert method run in O(n) times.

One can have duplicate elements in the list but not in the ArrayList.

Duplicate elements are removed before insertion , it does not happen in the list.

Similar questions