Important Java Mcq 1

Which of these interfaces must contain a unique element?

a) Set

b) List

c) Array

d) Collection

Answer

a) Set

Explanation:

A Set is a collection of items where every item is unique, and it is found in java.util package, thus option A is correct!

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?