difference. between List and Set?

Answer Posted / yamini

List contains duplicate values and it does not allows null values.

Set contains unique values and it allows null values.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the font and fontmetrics classes?

562


How would you reatach detached objects to a session when the same object has already been loaded into the session?

677


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1630


Can I map more than one table in a cmp?

590


Explain how will the struts know which action class to call when you submit a form?

520






What is the purpose of the finally clause of a try-catch-finally statement?

555


What is the purpose of the wait() method?

619


What does module-relative mean?

575


Is the ternary operator written x : y ? Z or x ? Y : z ?

637


What are the call back methods in entity bean?

557


What is a clone?

572


what are the advantages of JTA over JTS?

1669


What are the different class loaders used by jvm?

597


Write a singleton program?

570


How to determine SGA site?

1908