what is difference between set and list in collection?
Answer Posted / harikrishna
set inter is used to represent unique elements where as in
list interface elements need not be unique ArrayList,
Vector and LinkeList implememts list interface.Hashset and
LinkedHastSet implements set interface
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What is multithreading in java?
What are constructors in java?
What do you understand by final value?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is a constructor, constructor overloading in java?
How do you do exponents in java?
Write a code to create a trigger to call a stored procedure
If a method is declared as protected, where may the method be accessed?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
How do you reverse sort in java?
What do you mean by synchronized non access modifier?
I want to persist data of objects for later use. What is the best approach to do so?
What is listnode in java?
What does index mean in java?
What is the purpose of a parameter?