How do you define a set in java?



How do you define a set in java?..

Answer / Priyanka Wadhwa

In Java, a Set is an interface that extends the Collection interface and represents a collection of unique elements. The HashSet is one of the most common implementations of the Set interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.

2 Answers  


What is the collections api in java programming?

1 Answers  


What is oops in java?

1 Answers  


What is meant by packages?

4 Answers  


What is data structure in java?

1 Answers  


Can a singleton class be inherited?

1 Answers  


explain the collection in java

1 Answers   WDC,


Which of the classes will have more memory allocated?

1 Answers  


What is java in layman terms?

1 Answers  


How many decimal digits is 64 bit?

1 Answers  


What are 3 data types?

1 Answers  


Can list contain null in java?

1 Answers  


Categories