Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1588 Page Views: 

What is the difference between List, Set and Map?



Posted By: Avi Date: 4 November 2010 08:15:52 PM
 Answer:

A Set is a collection that has no duplicate elements. A List is a collection that has an order associated with its elements. A map is a way of storing key/value pairs.


Posted By: avibtech


Date: 4 November 2010 08:15:52 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image T3SF7B
Related Questions
Core Java : When you invoke a thread's interrupt method while it is  sleeping or waiting, What happens?

When you invoke a thread's interrupt method while it is sleeping or waiting, What happens?

When a task's interrupt() method is executed, the task enters the ready state. The next time the tas....
Category: Core Java Date: 11/3/2010 10:38:50 AM
Core Java : What value does readLine() return when it has reached the end of a file?

What value does readLine() return when it has reached the end of a file?

The readLine() method returns null when it has reached the end of a file.
Category: Core Java Date: 11/3/2010 9:22:52 AM
Core Java : What is the difference between a field variable and a local variable?

What is the difference between a field variable and a local variable?

A field variable is a variable that is declared as a member of a class. A local variable is a variab....
Category: Core Java Date: 11/3/2010 9:21:54 AM
Core Java : What is the difference between Hashtable and HashMap?

What is the difference between Hashtable and HashMap?

Hashtable is synchronized and does not allow null values. HashMap is not synchronized and allows nul....
Category: Core Java Date: 11/3/2010 8:16:51 AM
Core Java : What is a Vector?

What is a Vector?

A Vector is a grow able array of objects.
Category: Core Java Date: 11/3/2010 7:43:50 AM