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


Please Help Members By Posting Answers For Below Questions

Name few java 8 annotations ?

561


Which is dependent variable?

492


You're given a Boolean 2D matrix, can you find the number of islands?

593


When is the finalize() called?

694


What isan abstract class and when do you use it?

838






State the difference between strings and arrays.

597


What is the difference between break and continue statements?

547


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8617


How do you remove an element from an arraylist in java?

460


Can a class extend more than one class?

607


How do you check if an arraylist is not empty?

573


What are classloaders?

599


Does java have a compiler?

553


What is unicode used for?

568


Can we overload the main() method?

545