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
Describe what happens when an object is created in java ?
What is final keyword?
What are sets in java?
Can classes declared using the abstract keyword cab be instantiated?
How to sort elements in a parallel array in java?
How does indexof work?
Can we use switch statement with strings?
Why string is called as immutable?
Can I learn java in 3 months?
What is the difference between interface & abstract class?
What are java packages? What is the significance of packages?
how to split string in java?
What is difference between path and classpath?
What are selection structures?
What are different types of multitasking?