How define set in java?



How define set in java?..

Answer / Kunwar Akram Ali

In Java, you can define a Set using one of the Set interfaces such as HashSet, TreeSet, or LinkedHashSet. These sets store unique elements and do not allow duplicates.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is ide with example?

1 Answers  


State differences between C and Java?

1 Answers   Deloitte, JPMorgan Chase,


how to call One constructor from another;

10 Answers   Innodata Isogen,


Can we extend the String class?

3 Answers   Truworth,


what is run time polymorphism

4 Answers  


How does arraylist work in java?

1 Answers  


What is skeleton and stub? What is the purpose of those?

1 Answers  


What do you mean by thread safe?

1 Answers  


What is immutable class in java?

1 Answers  


Java is Pass by Value or Pass by Reference?

1 Answers   BirlaSoft,


Can we declare an array without size in java?

1 Answers  


Explain runtime exceptions?

1 Answers  


Categories