Answer Posted / kiran
you have SET INTERFACE in COLLECTION in java . where u can
store unique elements and if u try to add duplicate elements
it will raise an error
Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
How to sort an array from smallest to largest java?
What java is used for?
What is the difference between procedural and object-oriented programs?
What is linked hashmap and its features?
What are data types in programming?
Is set sorted in java?
What does \ mean in regex?
What are internal and external variables?
How we can declare a static variable?
Is char a data type in java?
How do you identify if jvm is 32-bit or 64-bit from java program?
What are the concepts of 'OOPS'?
What is the difference between comparison done by equals method and == operator?
Can a method be static?
Why is stringbuffer not immutable?