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
When will we use them?
What are the different data types in java?
What is use of static in java?
Can you write a java class that could be used both as an applet as well as an application?
What is the use of default method in interface in java?
Explain about serializable interface in java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
How big is a boolean?
How do you use compareto method?
What is a method in coding?
What is a boolean field?
What does flagged out mean?
Does google use java?
What is static synchronization?
What is hashmap in java?