Answer Posted / vinod varma
set is an interface which doesnot allows the duplicate values
where as list is also an interface which allows the
duplicate values and we may not guarantee the order of
elements in set
but we can get the elements from list according to their
indexes. we may not insert the elements into set at the
specific index, but possible in list.
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is sorting in java?
What happens if an exception is throws from an object's destructor?
Why stringbuffer is faster than string?
Is a method a procedure?
How much is a java license?
Can we sort a map in java?
What is a top level class in java?
How do you do a line break in java?
Difference between collection, collection and collections in java?
Can java object be locked down for exclusive use by a given thread?
What is the core java?
Can an unreferenced object be referenced again?
What is classname class in java?
How do you format in java?
What are three advantages of using functions?