FUNDAMENTALS OF COMPUTER

DATABASE FUNDAMENTALS

BASICS OF BIG DATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these interface must contain a unique element?
A
set
B
List
C
Array
D
Collection
Explanation: 

Detailed explanation-1: -3. Which of this interface must contain a unique element? Explanation: Set interface extends collection interface to handle sets, which must contain unique elements.

Detailed explanation-2: -ArrayList. The ArrayList class implements the List interface. It uses a dynamic array to store the duplicate element of different data types. The ArrayList class maintains the insertion order and is non-synchronized.

Detailed explanation-3: -Interfaces can contain instance methods, properties, events, indexers, or any combination of those four member types. Interfaces may contain static constructors, fields, constants, or operators. Beginning with C# 11, interface members that aren’t fields may be static abstract .

Detailed explanation-4: -This framework provides many interfaces (Queue, Set, List, Deque) and classes ( PriorityQueue, HashSet, ArrayList, Vector, LinkedList, LinkedHashSet).

There is 1 question to complete.