General Motors
Work in HR? Unlock Free Profile

General Motors Senior Software Developer Interview Question

I interviewed in Detroit, MI and was asked:
"What is the difference between a Set and a List?"
Add Tags [?]

Part of a Senior Software Developer Interview Review - one of 315 General Motors Interview Reviews

Answers & Comments

of 3

As set allows duplicate object values. A list doesn't

- Interview Candidate on Mar 29, 2013
of 1

set has unique elements (no duplicates) and is not ordered
list is ordered and can contain duplicates

- ummm on Apr 07, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords, helping to categorise interview questions that have something in common.