General Motors

  www.gm.com
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 [?]
Answer

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

Answers & Comments

0
of 3
votes
As set allows duplicate object values. A list doesn't
- Interview Candidate on Mar 29, 2013
0
of 1
vote
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.