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
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
What is the difference between menuitem and checkboxmenu item?
Is alive method in java?
What is an exception? difference between Checked and Unchecked exception in Java
What is java in simple terms?
What is replacefirst in java?
Why there are some null interface in java? What does it mean?
What is meant by memory leak?
What is local class in java?
What is a singleton puppy?
If we don’t want some of the fields not to serialize how to do that?
Will set allow duplicates in java?
Difference between vector and arraylist.
What is an 8 bit word?
What are the different types of collections in java?