Answer Posted / ballu
i think java does not this in built facility ... you would
need to make sure that objects inserted in array are unique
( by overriding equals() and hash() method of Object class
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
Which collection does not allow duplicates in java?
How many types of design patterns are there?
What is the association?
Does substring start with 0?
Is a boolean variable?
Who is the owner of java?
What happens when a thrown exception is not handled?
Why java is a platform independent? Explain
How large is a boolean?
What is passed by reference and pass by value ?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
How many types of java are there?
What is the structure of java?
Can I import same package/class twice?
Add a value x to array from index l to r where 0 <= l <= r <= n-1