Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
moring
4mo ago
0 comments
Save
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
1 comments · 1 top-level
top
newest
oldest
hmry
4mo ago
Yeah, sorry, you're right. I have edited my comment. Thanks for the correction!
j
/
k
navigate · click thread line to collapse