Computer Science, asked by keerthikuninti, 3 months ago

22)To traverse a collection using get(int index), it should be a collection of type
Any of these options.
Map
Set
List

Answers

Answered by AaliyaHaju
18

please write your questions properly because I am not getting.

Answered by anusha195sl
0

Answer:

The correct answer is list.

Explanation:

The list interface is part of java programming language which is found in the package of java.util

The classes of implementation in java are stack, vector, ArrayList.

Syntax used for the list interface is already that exists is

public interface List extends Collection ;

There are three types of operation used in list is as follows:

1) add () method

2) set() method

3) remove() method

#SPJ2

Similar questions