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
Can we pass a primitive type by reference in java? How
What is the meaning of nullable?
How do you generate random numbers in java?
What is a void method?
What is the meaning of variables in research?
What is the covariant return type?
explain different ways of using thread? : Java thread
What does a boolean method return?
What are abstract classes and anonymous classes?
Why chararray() is preferred over string to store the password?
What is a locale?
Are variables stored in ram?
What is tree node in java?
What do u mean by variable?
how are methods defined?