1.

Which of these is a Basic interface that all other interface inherits?(a) Set(b) Array(c) List(d) CollectionThe question was asked in an interview for job.My question is based upon Collections Interface in section java.util – The Collections Framework of Java

Answer»

The CORRECT option is (d) Collection

For EXPLANATION I would say: Collection interface is inherited by all other interfaces like Set, Array, MAP etc. It DEFINES core methods that all the collections like set, map, arrays etc will have



Discussion

No Comment Found

Related InterviewSolutions