Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
moring
1mo ago
0 comments
Share
Did you mean arrays instead of lists? Arrays behave as you describe (with ArrayStoreException when you write a wrong value to an array). List<> is invariant WRT its type parameter.
0 comments
default
newest
oldest
hmry
1mo ago
Yeah, sorry, you're right. I have edited my comment. Thanks for the correction!
j
/
k
navigate · click thread line to collapse