what is difference between set and list in collection?

Answer Posted / chris

Set does not permit duplicate elements, List does. Also, Set
does not guarantee any iteration order, whereas List does.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

1848


What is the difference between menuitem and checkboxmenu item?

771


Is alive method in java?

504


What is an exception? difference between Checked and Unchecked exception in Java

552


What is java in simple terms?

555






What is replacefirst in java?

571


Why there are some null interface in java? What does it mean?

642


What is meant by memory leak?

537


What is local class in java?

516


What is a singleton puppy?

527


If we don’t want some of the fields not to serialize how to do that?

563


Will set allow duplicates in java?

497


Difference between vector and arraylist.

578


What is an 8 bit word?

590


What are the different types of collections in java?

526