Answer Posted / neeti
the set inteface does'nt allow duplicate
elements.therefore,the add() method return false if an
attempt is made to add duplicate elements to a set.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of stub and skeleton?
What is not thread safe?
What is the difference between synchronized and synchronized block?
What do you mean by ternary operator in java?
Can long be null in java?
Explain java heap space and garbage collection?
What does escaping a character mean?
What is a substring of a string?
Why do we create threads in java?
How to make object serializable in java?
What's the difference between int and integer in java?
explain what is transient variable in java?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What is the symbol for space?
What is a ternary operator in java?