What is the difference between set and list?

Answer Posted / may

set stores elements in an unordered way but does not
contain duplicate elements,where as it stores elements in
an ordered way but may contain duplicate elements.

Is This Answer Correct ?    37 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you compute size of a structure?

785


Why is java called java?

769


What is difference between array and vector?

764


Explain method local inner classes ?

776


What variables are stored in stack?

720


worst case complexities of Quick sort and Merge sort.

778


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

833


What is oop principle in java?

725


What is a memory leak in java?

762


Does sprintf add a null terminator?

806


What is the purpose of a transient variable?

790


What methodology can be utilized to link to a database?

695


Is java pass by value or pass by reference?

730


What is class level lock ?

794


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2321